Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Adamou02 opened this issue Aug 4, 2023 · 1 comment
Closed
Labels
bug status:Duplicate status:Needs Triage Applied to issues that need triage

Comments

@Adamou02
Copy link

Adamou02 commented Aug 4, 2023

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
@Adamou02 Adamou02 added bug status:Needs Triage Applied to issues that need triage labels Aug 4, 2023
@RRosio RRosio changed the title IPython extension broken with new versions of Notebook ( <=7.0.0 ) IPython extension broken with new versions of Notebook ( >=7.0.0 ) Aug 8, 2023
@RRosio
Copy link
Collaborator

RRosio commented Aug 8, 2023

Hi @Adamou02, thank you for submitting this issue! This has been previously reported in #6394 so I will close this as a duplicate. Please feel free to add information/feedback under that issue!

@RRosio RRosio closed this as completed Aug 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug status:Duplicate status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants