I have written a Jupyter notebook (a .pynb file), and I would like to continue my exploration of the data described in that notebook. I strongly prefer doing so in the IPython REPL rather than in the Jupyter notebook itself, so I would like to execute the whole notebook in the Jupyter REPL and populate the global namespace with all variables defined in the notebook.
I'm aware that I can export the notebook as a Python script and %run it, but that doesn't work because of magics such as %matplotlib inline that don't work in my IPython shell (running this on macOS).
In R, one can run a R Markdown notebook from the console with rmarkdown::render(), and have the global environment populated with the objects defined in the R Markdown notebook. Is there anything similar for IPython?