Closed
Description
Description
This bug occurs when I use the IPython package.
However, new versions of notebook return this error : > Javascript Error: IPython is not defined.
This module is in a python script who is called from a cells of my notebook. I show you below my notebook and Python code
Reproduce
Savepdf() is the function using IPython package.
- My Python code :
def Savepdf(eng, model, notebook_name):
magic_code = """
IPython.notebook.save_notebook()
"""
get_ipython().run_cell_magic('javascript', '', magic_code)
- Then i get in my Notebook :
Javascript Error: IPython is not defined.
Expected behavior
Everything works well with notebook 6.5.4 version. Notebook is saved as if I used Ctrl+S in the notebook.
Context
Notebook is opened from Python with the command : jupyter notebook
I installed Notebook with "pip3 install notebook==7.0.0".
- Windows 10
- Browser and version:
- Jupyter Notebook 7.0.0