Closed artfisica closed 3 years ago
Hi there, have you tried to attach other DIDs? If yes, did it work? If you can attach the screenshot of the Notebook tab, that would be nice.
Hi!
Thanks for the reply. No, I did not try another dataset; I will do so and let you know. What I did was to try in a couple of different notebooks (same kernel, of course)
So there are a couple of scenarios of why the attachment could fail:
Given that you have successfully downloaded the files, I suppose number (1) is more likely. You could see if the kernel extension has been loaded by seeing if the function resolve_dids
exists.
It should show something like this:
For instructions on how to load the kernel extension, take a look at this link: https://github.com/rucio/jupyterlab-extension/blob/master/CONFIGURATION.md#ipython-kernel
Hope it helps!
Thank you again, @didithilmy :)
I tried with another dataset, but yes, the result is the same.
Also, following your instructions, I see that yes, it looks like I don't have such a kernel extension.
I see also the instructions, but yes, I don't get the same result as you when doing resolve_dids
Sorry for the naive question, but could it be that I need to install something after the Jupyterlab and the extension?
I mean, after the JupyterLab installation, I have (in the Docker creation):
&& python3.6 -m pip install rucio-jupyterlab \
&& jupyter nbextension enable --py widgetsnbextension \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager@2.0 --debug --minimize=False --dev-build=False \
&& jupyter lab build --minimize=False --dev-build=False
Another screenshot attached :)
So after you run the line that loads the kernel ext, you should re-inject the variables. You can do that by clicking on the “Failed to Attach” button on the top right.
Oh, thanks!
No way you can believe me that I did that before, and it did not work for me :)
I understand now that restart the kernel also means executing and re-injecting the variables (maybe an obvious comment, but this post will help me in the future, I am sure).
Ok, now it works (see the screenshot, please), so a question I should ask is:
%load_ext
unnecessary in every notebook?
?
I would suggest that you configure your JupyterLab installation so that you don’t include the first line. You can do that by creating an IPython config file (see the previous link).
As for the last cell, I believe that you have a typo, it should be resolve_dids
, not resolve_dsdi
. If the attachment works, then you’re all set :)
Hi @didithilmy,
Thank you very much! Yes, it works, I added in my docker creation, and now the file is in the setup by default.
Great support and excuses for the delay to reply back.
I may have another question, but I will leave it to another issue to keep it in a single subject.
Thanks and cheers, Arturo
Great! Happy to help. I'm closing this issue, then.
Dear All,
Thanks for such a nice and useful job done with this tool!
I have been using the extension since a few days ago, and I have a problem where even when I find and successfully download a dataset, I can't attach a variable in a Python3 kernel notebook.
I am not sure if this is the right forum, but can I ask where to explore the reason for this failure? Or any other advice you can give me
Your help is very much appreciated,
Cheers, Arturo