Accessing the javascript widget models in JupyterLab
See original GitHub issueI would like to be able to access the javascript widget models in a notebook.
Using Classic Jupyter Notebook, I can access these models using:
%%javascript
var manager = IPython.WidgetManager._manager[0];
Is there an equivalent command in JupyterLab? (I have installed @jupyterlab-manager)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Embedding Jupyter Widgets in Other Contexts than the ...
Here, we discuss embedding widgets using the custom widget manager in the @jupyter-widgets/html-manager npm package. Two embedders are provided:.
Read more >Accessing widget state - JupyterLab - Jupyter Community Forum
Specifically I am looking for widget state that i can drop into a <script type="application/vnd.jupyter.widget-state+json"></script> tag and ...
Read more >Creating custom widgets in the Jupyter Notebook | Devportal
The last step is using the %%javascript built-in magic command to define a Backbone.js front end. .This is the main component used to...
Read more >How to get ipywidgets working in Jupyter Lab? - Stack Overflow
JupyterLab now prefers a model where arbitrary javascript is no longer allowed to be embedded in a cell's output, which is how many ......
Read more >Interactive Visualizations in JupyterLab and PixiJS - YouTube
But in some situations, we need access t. ... of custom JupyterLab extension using Jupyter Widgets and a JavaScript library called Pixi. js....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would like to be able to access the currentTime of an HTML5 audio element in my python code. I can currently access this in a Classic Jupyter Notebook. Getting it to work in JupyterLab is proving more difficult.
Executing the following cell in Classic Jupyter works as expected.
I’d be delighted if there was a simpler method to keep a Slider widget in sync with the time played in an audio element.
BTW I have just discovered that ipywidgets also has an Audio element, but believe that it would behave similar to the IPython.display Audio element, and the IPython.display Audio element can set an element_id, which is handy.
Thanks for your work on these widgets. They are most useful, and help to make Python/JupyterLab a very powerful scientific toolbox.
@saraswathykrk , I am unaware of any changes since I posted this issue, which means the code above works in Classic Notebook (which is accessible from Jupyterlab via the
Help
Menu), but does not work in Jupyterlab.