AnatomyOfMatplotlib icon indicating copy to clipboard operation
AnatomyOfMatplotlib copied to clipboard

remove backend matplotlib.use('nbagg') and add ipympl

Open hasibzunair opened this issue 4 years ago • 5 comments

Addresses #32

hasibzunair avatar Oct 27 '19 21:10 hasibzunair

I don't see where these changes are using the widget backend.

tacaswell avatar Oct 28 '19 01:10 tacaswell

They aren't if I am not wrong. I removed the nbagg backend and installed the ipympl it seems to work fine for these notebooks. The issue for the %matplotlib widget still remains.

hasibzunair avatar Oct 28 '19 01:10 hasibzunair

I removed the nbagg backend and installed the ipympl it seems to work fine for these notebooks

If you are not getting interactive figures (can you pan / zoom?) then things are not working correctly.

tacaswell avatar Oct 28 '19 02:10 tacaswell

I have fixed the widget issue by running the following bash commands:

conda install -y nodejs
pip install --upgrade jupyterlab
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-matplotlib
jupyter nbextension enable --py widgetsnbextension

I get interactive figures now.

hasibzunair avatar Oct 28 '19 03:10 hasibzunair

Merge possible?

hasibzunair avatar Nov 11 '19 04:11 hasibzunair