Skip to content

IPython extension broken with new versions of Notebook ( >=7.0.0 ) #7000

Closed
@Adamou02

Description

@Adamou02

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

image
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions