Jupyter - Installation and Getting Started



You can easily install Jupyter notebook application using pip package manager.

pip3 install jupyter

...
Installing collected packages: webencodings, fastjsonschema, widgetsnbextension, websocket-client, webcolors, uri-template, tornado, tinycss2, soupsieve, setuptools, send2trash, rpds-py, rfc3986-validator, rfc3339-validator, pyzmq, pywinpty, python-json-logger, psutil, prometheus-client, platformdirs, pandocfilters, nest-asyncio, mistune, lark, jupyterlab_widgets, jupyterlab-pygments, jsonpointer, json5, httpcore, fqdn, defusedxml, debugpy, comm, bleach, babel, attrs, async-lru, terminado, rfc3987-syntax, referencing, jupyter-core, httpx, beautifulsoup4, arrow, argon2-cffi-bindings, jupyter-server-terminals, jupyter-client, jsonschema-specifications, isoduration, ipywidgets, argon2-cffi, jsonschema, ipykernel, nbformat, jupyter-console, nbclient, jupyter-events, nbconvert, jupyter-server, notebook-shim, jupyterlab-server, jupyter-lsp, jupyterlab, notebook, jupyter
Successfully installed argon2-cffi-25.1.0 argon2-cffi-bindings-25.1.0 arrow-1.4.0 async-lru-2.0.5 attrs-25.4.0 babel-2.17.0 beautifulsoup4-4.14.3 bleach-6.3.0 comm-0.2.3 debugpy-1.8.19 defusedxml-0.7.1 fastjsonschema-2.21.2 fqdn-1.5.1 httpcore-1.0.9 httpx-0.28.1 ipykernel-7.1.0 ipywidgets-8.1.8 isoduration-20.11.0 json5-0.12.1 jsonpointer-3.0.0 jsonschema-4.25.1 jsonschema-specifications-2025.9.1 jupyter-1.1.1 jupyter-client-8.7.0 jupyter-console-6.6.3 jupyter-core-5.9.1 jupyter-events-0.12.0 jupyter-lsp-2.3.0 jupyter-server-2.17.0 jupyter-server-terminals-0.5.3 jupyterlab-4.5.1 jupyterlab-pygments-0.3.0 jupyterlab-server-2.28.0 jupyterlab_widgets-3.0.16 lark-1.3.1 mistune-3.2.0 nbclient-0.10.4 nbconvert-7.16.6 nbformat-5.10.4 nest-asyncio-1.6.0 notebook-7.5.1 notebook-shim-0.2.4 pandocfilters-1.5.1 platformdirs-4.5.1 prometheus-client-0.23.1 psutil-7.2.0 python-json-logger-4.0.0 pywinpty-3.0.2 pyzmq-27.1.0 referencing-0.37.0 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rfc3987-syntax-1.1.0 rpds-py-0.30.0 send2trash-1.8.3 setuptools-80.9.0 soupsieve-2.8.1 terminado-0.18.1 tinycss2-1.4.0 tornado-6.5.4 uri-template-1.3.0 webcolors-25.10.0 webencodings-0.5.1 websocket-client-1.9.0 widgetsnbextension-4.0.15

Starting Jupyter

To start the application, use the following command in the command prompt window.

(myenv) D:\Projects\python\myenv>jupyter notebook

[I 2025-12-25 16:38:05.095 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-12-25 16:38:05.101 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-12-25 16:38:05.110 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-12-25 16:38:05.118 ServerApp] notebook | extension was successfully linked.
[I 2025-12-25 16:38:05.123 ServerApp] Writing Jupyter server cookie secret to C:\Users\mahes\AppData\Roaming\jupyter\runtime\jupyter_cookie_secret
[I 2025-12-25 16:38:05.396 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-12-25 16:38:05.451 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-12-25 16:38:05.453 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2025-12-25 16:38:05.454 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-12-25 16:38:05.457 LabApp] JupyterLab extension loaded from D:\Projects\python\myenv\Lib\site-packages\jupyterlab
[I 2025-12-25 16:38:05.457 LabApp] JupyterLab application directory is D:\Projects\python\myenv\share\jupyter\lab
[I 2025-12-25 16:38:05.458 LabApp] Extension Manager is 'pypi'.
[I 2025-12-25 16:38:05.631 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-12-25 16:38:05.635 ServerApp] notebook | extension was successfully loaded.
[I 2025-12-25 16:38:05.637 ServerApp] Serving notebooks from local directory: D:\Projects\python\myenv
[I 2025-12-25 16:38:05.637 ServerApp] Jupyter Server 2.17.0 is running at:
[I 2025-12-25 16:38:05.638 ServerApp] http://localhost:8888/tree?token=7adfe7d2732404c4e122ca8dd17eb726a8dfde715f252f4f
[I 2025-12-25 16:38:05.638 ServerApp]     http://127.0.0.1:8888/tree?token=7adfe7d2732404c4e122ca8dd17eb726a8dfde715f252f4f
[I 2025-12-25 16:38:05.638 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-12-25 16:38:05.662 ServerApp]

    To access the server, open this file in a browser:
        file:/C:/Users/mahes/AppData/Roaming/jupyter/runtime/jpserver-27892-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/tree?token=7adfe7d2732404c4e122ca8dd17eb726a8dfde715f252f4f
        http://127.0.0.1:8888/tree?token=7adfe7d2732404c4e122ca8dd17eb726a8dfde715f252f4f
[I 2025-12-25 16:38:06.332 ServerApp] Skipped non-installed server(s): basedpyright, bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyrefly, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server

Output

The server application starts running at default port number 8888 and browser window opens to show notebook dashboard.

Jupyter Notebook Dashboard

Observe that the dashboard shows a dropdown near the right border of browser with an arrow beside the New button. It contains the currently available notebook kernels. Now, choose Python 3, then a new notebook opens in a new tab. An input cell as similar to that of in IPython console is displayed.

You can execute any Python expression in it. The result will be displayed in the Out cell.

Result Out Cell
Advertisements