# Javascript functionality within Jupyter notebook from IPython.display

**URL:** https://discourse.slicer.org/t/javascript-functionality-within-jupyter-notebook-from-ipython-display/40075
**Category:** Support
**Created:** [November 7, 2024, 10:10pm UTC](https://discourse.slicer.org/t/javascript-functionality-within-jupyter-notebook-from-ipython-display/40075 "2024-11-07T22:10:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sharada](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Sharada](https://discourse.slicer.org/u/Sharada)
#### Post date: [November 7, 2024, 10:10pm UTC](https://discourse.slicer.org/t/javascript-functionality-within-jupyter-notebook-from-ipython-display/40075/1 "2024-11-07T22:10:22Z")

</div>

Hello,

I have a process wherein consecutive cells need to be executed in a jupyter notebook that interacts with Slicer (using SlicerJupyter extension).

I basically have something like

from IPython.display import Javascript  
display(Javascript(“IPython.notebook.execute\_cells\_below()”))

This used to work perfectly in Slicer 4.11, but I am unable to replicate it in the newer 5.6.1 and 5.6.2 versions.

The error is “Javascript Error: display is not defined”

Does anyone have any insights on this? This is for a time sensitive project, so I would appreciate any help! Thank you in advance.

Best,  
Sharada
