-
Notifications
You must be signed in to change notification settings - Fork 32
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
Launch metview in Jupyter when installed in different environments #48
Comments
I'm surprised it can't find Metview, but one thing you can do is, from a terminal where Metview can be found, type Good luck! Cheers, |
Thanks for the quick response! I am stilling having an issue loading the package. I am unsure if it has to do with the fact that I'm SSH tunneling into Jupyter Notebooks from an HPC. Here is what I did: In my first Terminal window, I SSHed into the HPC, was allocated a compute node, and launched Jupyter Notebooks. I opened a second Terminal window, mapped the port to my local, then launched Jupyter in my browser. Also from this second window, I activated the environment where metview is installed and executed
I deactivated the environment, and from my base environment (where Jupyter Notebooks is installed), I executed:
Executing After launching my notebook and running
I tried relaunching Jupyter, but still the same error. |
Hi, OK, this should help: first, to make sure the environment inside your notebook has the right path set, you can set the env var before importing metview, and to also get more debug output:
|
Hi, Thanks for the response. Trying the suggestion above still gives the same error (i.e., it cannot find metview):
|
Hi Savannah, Looks like this one dropped off the radar...! Did you manage to fix this issue? It looks like you were in an environment where Metview's Python interface was not installed. Cheers, |
I have Jupyter Notebooks installed in my base environment. When creating/using separate environments, I use ipykernel to make them accessible as Jupyter kernels. I recently installed metview into an existing conda environment (entitled "monsoon-pr") following:
When launching a new notebook, activating the environment where metview is installed (via the Kernel dropdown), and attempting to import metview following
import metview as mv
, I get the following error:I'm assuming this error is because metview is operating out of a different environment than Jupyter. In my Jupyter notebook,
os.environ['PATH']
gives my Jupyter path as:While in my conda environment with metview (monsoon-pr) in Terminal, my path is:
Is there a way to set the notebook PATH so that it can retrieve metview from the conda environment? I don't want to have to install Jupyter within my conda environment.
The text was updated successfully, but these errors were encountered: