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

146
Views
How to access a JS variable from separate display_javascript calls in Deepnote?

This simple code in a single cell works in Jupyter Notebook, but Deepnote seems to render the display_javascript calls into separate iframes. Is there any way to get this work in Deepnote?

from IPython.display import display_javascript

display_javascript("var a = 10", raw=True)
display_javascript("console.log(a)", raw=True)

Uncaught (in promise) ReferenceError: a is not defined

Example: https://deepnote.com/project/How-to-access-Javascript-variable-from-separate-displayjavascript-call-hvyWPhDWRGahj9NvgJtuGw/%2Fnotebook.ipynb

Background: I'm working on a JS charting library Jupyter integration (ipyvizzu), where I would like to access the JS chart object eventually from different cells in the notebook.

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!