Logo

ARCH Systems

  • Rockfish Cluster
  • DSAI Cluster
  • EDU Cluster

Common Tasks

  • Bash Quick Start
  • Manage Group Permissions
  • Connecting to the JHU VPN
  • GPU Utilization: Measuring, Diagnosing, and Improving

Tutorials

  • Managing Software Using Lmod
  • Containers
  • Environments & Packages
    • Virtual Environments
    • Conda R
    • Link Conda to Jupyter
      • Connect to Rockfish
      • Start an Interactive Session (Compute Node)
      • Load Anaconda and Activate Your Environment
      • Install and Register the Jupyter Kernel
        • For Python
        • For R
      • Confirm Kernel Registration
      • Deactivate the Environment
      • Exit the Compute Node
      • You’re All Set!
    • Link Conda to RStudio
  • Interactive Interfaces
  • Specialized Applications
  • Workflows

Support and Help

  • ARCH Terminology
  • Good Citizenship & Terms of Use
  • Citing ARCH
  • Support
  • Frequently Asked Questions
  • Service Level Expectations
ARCH Technical Documentation
  • Environments & Packages
  • Link Conda to Jupyter
  • View page source

Link Conda to Jupyter

This guide explains how to link your Conda environment — whether it’s Python or R — to JupyterLab on Rockfish.

Connect to Rockfish

Open a terminal and connect:

ssh YourUserID@login.rockfish.jhu.edu

Start an Interactive Session (Compute Node)

interact -p shared -n 4 -t 02:00:00

Load Anaconda and Activate Your Environment

module load anaconda3/2024.02-1
conda activate my_env

Replace my_env with the name of your Conda environment.

Install and Register the Jupyter Kernel

For Python

# Install ipykernel (if not installed)
pip install ipykernel

# Register kernel
ipython kernel install --user --name=my_env --display-name "Python - my_env"

For R

R

Inside the R prompt:

# Install the IRkernel package (if not installed)
install.packages("IRkernel")

# Register the kernel
IRkernel::installspec(name = "my_env", displayname = "R - my_env")

# Exit R
q()

Note

💡 Explanation: - --name / name: Internal identifier used by Jupyter (no spaces or dots). - --display-name / displayname: Friendly name that appears in the JupyterLab interface.

Confirm Kernel Registration

jupyter kernelspec list

You should see your environment listed (e.g., my_env).

Deactivate the Environment

conda deactivate

Exit the Compute Node

exit

You’re All Set!

The next time you launch JupyterLab on Rockfish, your kernel(s) will be available as options:

  • ➡️ Python - my_env

  • ➡️ R - my_env

Just select the one you need and start coding!

Previous Next

© Copyright 2025, ARCH Systems.

Built with Sphinx using a theme provided by Read the Docs.