Skip to content

Instantly share code, notes, and snippets.

@RahulDas-dev
Last active October 4, 2022 06:28
Show Gist options
  • Save RahulDas-dev/317232375e1cd926b34c3baa6c4efcb4 to your computer and use it in GitHub Desktop.
Save RahulDas-dev/317232375e1cd926b34c3baa6c4efcb4 to your computer and use it in GitHub Desktop.
The Jupyter Notebook Installation for the Virtual Environment

The Jupyter Notebook Installation for the Virtual Environment

Installation can be done pip install Jupyter. However big list dependency of Jupyter can be avoided by installting ipython kernel module only, if you have Jupyter installed Globally.

  1. Install the ipython kernrl pip install ipykernel

  2. Create a new kernel for your current virtual environment python -m ipykernel install --user --name=<promt>

  3. Launch the notebook with jupyter notebbok from virtual Environment.

  4. You should now be able to see your kernel in the IPython notebook menu: Kernel -> Change kernel

    ipython-kernel-selection

  5. You are ready to go now.

  6. In case you want To Remove the kernel .

    • jupyter kernelspec list this list down all installed kernal.
    • jupyter kernelspec uninstall <unwanted-kernel> removes the kernal.

Runing jupyter notebook from remote shell

  1. First Run jupyter notebook from project directory of remote server.
  2. Notedown the port number .
  3. Finally run the following commands from local meachine ssh -L 8888:localhost:<remote_port> <remote_user_name>@<remote_ip>
  4. Point the browser at localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment