Start Jupyter in Conda Environment

Q

How to Start Jupyter in Conda Environment?

✍: FYIcenter.com

A

If you have installed Jupyter in the system default Conda environment, you can start it with the "jupyter notebook" command as shown in this tutorial.

1. Run "jupyter notebook" command to start Jupyter. You see messages confirming that the Jupyter server is started.

fyicenter$ which jupyter
  /usr/local/anaconda3/bin/jupyter

fyicenter$ jupyter notebook 

[I NotebookApp] Writing notebook server cookie secret to 
  /home/fyicenter/.local/share/jupyter/runtime/notebook_cookie_secret
[I LabApp] JupyterLab extension loaded from 
  /usr/local/anaconda3/lib/python3.8/site-packages/jupyterlab
[I LabApp] JupyterLab application directory is 
  /usr/local/anaconda3/share/jupyter/lab
[I NotebookApp] Serving notebooks from local directory: /home/fyicenter
[I NotebookApp] Jupyter Notebook 6.3.0 is running at:
[I NotebookApp] http://localhost:8888/?token=5ffa0271...8c7f
[I NotebookApp]  or http://127.0.0.1:8888/?token=5ffa0271...8c7f
[I NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C NotebookApp] 

  To access the notebook, open this file in a browser:
    file:///home/fyicenter/.local/share/jupyter/runtime/nbserver-3769422-open.html

2. Jupyter will try to start the default Web browser and to connect to Jupyter server.

3. You can open your favorite Web browser and enter "http://localhost:8888/tree" to connect to Jupyter server. You see the file system displayed as a Jupyter Notebook.

You can now browse the file system and open an existing Jupyter Notebook, or create a new Jupyter Notebook.

Jupyter Notebook - Local Server
Jupyter Notebook - Local Server

If you have to install Jupyter in a specific Conda environment, you need to activate that environment, then run the "jupyter notebook".

fyicenter$ conda activate faq

(faq) fyicenter$ which jupyter
  ~/anaconda3/envs/faq/bin/jupyter

(faq) fyicenter$ jupyter notebook

 

Shutdown Jupyter Server

Install Jupyter in Conda Environment

Installing and Running Jupyter

⇑⇑ Jupyter Tutorials

2021-11-12, 607🔥, 0💬