SyneRBI / SIRF-Exercises

SIRF Training and demonstration material
http://www.ccpsynerbi.ac.uk
Apache License 2.0
17 stars 21 forks source link

matplotlib #177

Closed DANAJK closed 1 year ago

DANAJK commented 2 years ago

Seems like on STFC cloud, notebooks need to use %matplotlib inline instead of %matplotlib notebook. I have added a note on the HackMD site.

KrisThielemans commented 2 years ago

please try %matplotlib widget as well? (we've switched to JupyterLab)

DANAJK commented 2 years ago

please try %matplotlib widget as well? (we've switched to JupyterLab)

%matplotlib widget gives an error: "Warning: Cannot change to a different GUI toolkit: widget. Using notebook instead."

KrisThielemans commented 2 years ago

sigh. which one? Probably need ipypml? I though @paskino has added it. could install via conda https://anaconda.org/conda-forge/ipympl or pip and see what happens...

DANAJK commented 2 years ago

Error is "Warning: Cannot change to a different GUI toolkit: widget. Using notebook instead."

KrisThielemans commented 2 years ago

there's also https://stackoverflow.com/questions/52703190/cannot-change-to-a-different-gui-toolkit-notebook-warning-in-jupyter which I don't understand

KrisThielemans commented 2 years ago

could install via conda https://anaconda.org/conda-forge/ipympl or pip and see what happens

doesn't help

KrisThielemans commented 2 years ago

%matplotlib widget does work if done BEFORE ANYTHING ELSE.

KrisThielemans commented 2 years ago

hackMD updated. Ideally update the doc in the repo as well.