astropy / astropy-workshop

Materials for Astropy Workshops
BSD 3-Clause "New" or "Revised" License
102 stars 67 forks source link

Javascript error using %matplotlib notebook #235

Open stargaser opened 8 months ago

stargaser commented 8 months ago

Describe the bug

In the notebook 00 Using the Jupyter notebook.ipynb there is a cell with %matplotlib notebook followed by another cell with plotting commands. In that second cell, a message is printed Javascript Error: Can't find variable: IPython. No plot output appears.

To Reproduce Steps to reproduce the behavior:

Open the notebook 00 Using the Jupyter notebook.ipynb and execute the first few cells.

Expected behavior

Using the %matplotlib notebook magic should produced plots that the user can interact with.

Desktop (please complete the following information):

Mac OS X Sonoma 14.1.2 Safari Version 17.1.2

Additional context

Problem initially reported by Bernhard Schulz at the Astropy workshop at AAS 243.

I found this issue implying that the problem was introduced in notebook 7. I tried downgrading to notebook 6.5.6 and the Javascript error still occurred.