Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
Javascript between cells in Google Colab

I'm trying to get ipyvizzu, a JS charting library's Jupyter Notebook integration, to work inside Google Colab. It depends on Jupyter's behavior that generated javascript codes are put in the same scope throughout the notebook. Basically, the code snippet below would work in Jupyter Notebook. However, it does not work in Google Colab, because Colab seems to put every cell output in a separate iframe. Can I change this behavior of Colab somehow? Or is there any solution to this problem?

from IPython.display import display_javascript
display_javascript("var a = 10", raw=True)
display_javascript("console.log(a)", raw=True)

Error evaluating Javascript output: ReferenceError: a is not defined

(not) working example: https://colab.research.google.com/drive/1FcAuHwqinsnBiaBALUguFzIw1wzoU1sj?usp=sharing

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!