Hi @brucellino, and thank you for your reply.
To keep the discussion going, as you suggested, here are some additional details on the problems I evoked:
First of all, could you give us some context on how you arrived at these issues? Were you following a tutorial somewhere? I would like to be able to reproduce this error you describe:
Well, I had to do a presentation this Monday on some work I did on segmenting the grains observed in the AFM images of certain thin films, and I thought of using the EGI Notebooks service (giving you guys some well deserved free advertising at the same time ). So the idea was to just upload the notebook I had on my PC, already prepared, and clone my environment (or install manually the modules I needed) and the script would work .
Ideally, I wanted also to give my colleagues the possibility to run the script themselves online, allowing them to upload their own images to be processed (That’s where my third question about sharing the notebooks came from).
So here is a simple example to reproduce the error of interactive plots not displaying:
from ipywidgets import widgets, interact
import matplotlib.pyplot as plt
from skimage import morphology
test_img = morphology.disk(11)
Error displaying widget
On the other hand:
Displays the slider, as it was supposed to.
N.B. For the
%matplotlib widget magic to work, one needs to have node.js installed, as well as ipympl, both of which I did on the terminal with the following:
sudo apt-get update
sudo apt-get install nodejs
conda install -c conda-forge ipympl
I don’t know if you already had questions about displaying interactive plots, but personally, I consider them as “a must have” option, so any effort on making them available would be greatly appreciated.
- Commenting out the
%matplotlib widget or switching to
inline displays the plots inline with no problem, but alas, with no interactivity
- Changing to
%matplotlib notebook or
nbagg gives the message:
As for the question about persistently changing the environment (adding new modules etc.) I’m not sure if I understand you correctly. The folder “persistent” does seem to retain all the files it contains, but it seems to me that all the tweaks in the configuration of the virtual environment (I’m using here the terms I don’t fully comprehend) are lost after a certain time of inactivity (the day after, for example).
Thanks again for all the work you’ve done so far!