Stream: jupyterlab-hub

Topic: How to Install Python Packages


view this post on Zulip Muntaha Pasha (Feb 02 2021 at 16:45):

Hello all! This is my first time using the NCAR/UCAR Jupyter via Cheyenne, and it is not able to recognize matplot imports or windrose imports in notebooks that I have uploaded. How can I get it to recognize those? In a local distribution using Anaconda I am able to install any missing packages on its command prompt, but I am not sure if as a Student I have access to command prompt install privileges, as well as where I could even go to install those (There is a terminal usually within Jupyter itself but you typically need permissions to install via there). If anyone has some pointers on how to install python packages on the Cheyenne Jupyter interface, it'd be very useful! Thanks!

view this post on Zulip Anderson Banihirwe (Feb 02 2021 at 16:51):

Hi @Muntaha Pasha,

Could you elaborate on "Jupyter via Cheyenne" i.e are you launching Jupyter via https://www2.cisl.ucar.edu/resources/jupyter-and-ipython or jupyterhub.ucar.edu?

view this post on Zulip Muntaha Pasha (Feb 02 2021 at 17:08):

Yes, I am launching Jupyterhub.ucar.edu!

view this post on Zulip Anderson Banihirwe (Feb 02 2021 at 23:57):

@Muntaha Pasha, thank you for your patience! I recorded a 3 video series about package management with conda on casper/cheyenne. You may find it useful and hopefully it answers most of your questions about package management.

view this post on Zulip Anderson Banihirwe (Feb 02 2021 at 23:57):

Here's the playlist on Youtube

view this post on Zulip Anderson Banihirwe (Feb 02 2021 at 23:57):

https://www.youtube.com/playlist?list=PLWY96VGjE_zrzcaYcTF499clyKZ1bSaKW

view this post on Zulip Anderson Banihirwe (Feb 02 2021 at 23:58):

https://youtu.be/GGxUgjlmW2A

view this post on Zulip Anderson Banihirwe (Feb 02 2021 at 23:59):

https://youtu.be/GGxUgjlmW2A

view this post on Zulip Anderson Banihirwe (Feb 02 2021 at 23:59):

https://youtu.be/W4Jb6rY1w1w

view this post on Zulip Anderson Banihirwe (Feb 03 2021 at 00:00):

@Stephen Yeager and @Aneesh subramanian you may find this useful

view this post on Zulip Aneesh Subramanian (Feb 03 2021 at 00:20):

Thanks very much, @Anderson Banihirwe ! This will be very useful when I teach my climate modeling class next in addition to being a great reference for everyone using the jupyterhub.

view this post on Zulip Muntaha Pasha (Feb 03 2021 at 00:47):

Thank you for the resources! In viewing the first video however, I think you need to be able to access the terminal, which I don't have. I'm using a local at home laptop, is there any way for me to get the specific terminal needed? I'm using the latest Windows OS. I was hoping there was maybe a way I could just do it on the user interface without needing to install a specific terminal to access Cheyenne. Do you know of any ways to do it locally, or will I most likely need to contact the people within my department to ask about getting into Cheyenne via the necessary linux command prompt?
Thanks again for your help! :)

view this post on Zulip Anderson Banihirwe (Feb 03 2021 at 02:33):

Thank you for the resources! In viewing the first video however, I think you need to be able to access the terminal, which I don't have. I'm using a local at home laptop, is there any way for me to get the specific terminal needed?

Since you already have access to the JupyterHub, you should be able to access Casper/Cheyenne. From your local terminal,
run:

ssh YOURUSERNAME_ON_CASPER_OR_CHEYENNE@casper.ucar.edu

view this post on Zulip Anderson Banihirwe (Feb 03 2021 at 02:34):

The YOURUSERNAME_ON_CASPER_OR_CHEYENNE is the same as the one you've been using on jupyterhub.ucar.edu

view this post on Zulip Michael Levy (Feb 03 2021 at 16:14):

I'm using a local at home laptop, is there any way for me to get the specific terminal needed? I'm using the latest Windows OS. I was hoping there was maybe a way I could just do it on the user interface without needing to install a specific terminal to access Cheyenne.

Assuming you are running Windows 10, you can run ssh directly via the Windows PowerShell program. I'd recommend installing PuTTY though, and using it to connect. Note that it can also be used to ssh to your department's Linux machines.

view this post on Zulip Muntaha Pasha (Feb 03 2021 at 20:59):

Thanks! Do you know what the "Token Response" refers to? Is that just my password?

view this post on Zulip Michael Levy (Feb 03 2021 at 21:06):

I think what Token Response is depends on how you have two-factor authentication set up with your account. I'm using the Duo app with push notifications, so I type my password in and hit enter, and then follow steps on my phone to complete the login... but before that I was using a yubikey and in that case I typed my PIN and then touched the yubikey button to complete the password. See CISL's authentication documentation for more details.

view this post on Zulip Michael Levy (Feb 03 2021 at 21:07):

if you were able to log in to jupyterhub successfully, then whatever process you used for the password field there should work as Token Response

view this post on Zulip Muntaha Pasha (Feb 04 2021 at 18:07):

@Anderson Banihirwe Hello Anderson! I had a quick question. Now that I am able to follow your tutorial, I got stuck on part 3, specifically when trying to use Nano to create the yml file. I only have vi, and vi does not recognize ":" for some reason. Am I able to install nano on Cheyenne using sudo apt install nano? I just want to make sure as a student I'd have the permission to do so.
Thank you!

view this post on Zulip Michael Levy (Feb 04 2021 at 18:12):

@Muntaha Pasha you do not have sudo access on cheyenne, but CISL has already installed nano. Run module load nano and then it will be available.

view this post on Zulip Muntaha Pasha (Feb 04 2021 at 18:15):

@Michael Levy Thanks a bunch! :D


Last updated: May 16 2025 at 17:14 UTC