New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to see Sherlock terminal's modules in Jupyter notebook #8
Comments
I don't work at Stanford anymore, but I'd be happy to help as best as I can, and I suggest you reach out to sherlock support after that. These lessons were written ~5 years ago and I left Stanford in February so things are likely to change!
So I suspect that forward is not sourcing your bash profile, where likely you have these things set up - it's sort of a raw/default you'd get without doing anything. Have you tried sourcing your profile? And I'm assuming that's where your custom modules are loaded?
I'm pretty sure Kilian used to install python3, so try python3 --version instead. |
Also don't forget you are in a python session so you can just do: import sys
sys.version_info
sys.version_info(major=3, minor=8, micro=8, releaselevel='final', serial=0) |
Thanks for your prompt respose. Tried Tried
and that returns |
Perfect! So that means the Python on the path is the one you are interacting with in the notebook, which is probably what you want :) |
Yes! But not sure why the modules are not syncing between what I see on my Sherlock terminal using |
Did you see my comment above? You probably aren't sourcing your bash profile, as you would when you login to an interactive session. |
When I do I checked that the |
Then you probably want to look in that file and see exactly what modules are added (e.g., module use) and make sure to add that to your notebook. And for production / your final code, I highly recommend you build (and run) a container to not rely on cluster-specific modules! I can't comment beyond that - I'd recommend research computing support. |
Ok! I figured one way to solve this. The only modules that will be usable in the jupyter notebook will be the ones that go in the |
Hello! I am using Jupyter notebooks on Sherlock by following the steps detailed here (with your default container): https://vsoch.github.io/lessons/sherlock-jupyter/
But I am running into issues as I am unable to use the modules that I have loaded on the interactive terminal of my Sherlock login outside of this jupyter notebook. This screenshot in black is from my terminal, where I have listed the modules using
module list
. This other screenshot is from my jupyter notebook where I am trying to list modules the same way as in the terminal but getting a different list. Additionally, for some reason I am also unable to see the latest version of Python in the notebook using!python --version
. Can you please help with what's going wrong?The text was updated successfully, but these errors were encountered: