ZhangZhihui's Blog  

 

Jupyter Extension is needed for connecting Jupyter lab server.

 

Install the Jupyter Extension:

 

Start a Jupyter lab server:

(zpytorch) zzh@ZZHPC:/zdata/Github/zpytorch$ jupyter lab
[I 2024-09-30 07:38:54.542 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-09-30 07:38:54.546 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-09-30 07:38:54.550 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-09-30 07:38:54.780 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-09-30 07:38:54.796 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-09-30 07:38:54.798 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-09-30 07:38:54.800 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-09-30 07:38:54.801 LabApp] JupyterLab extension loaded from /zdata/Github/zpytorch/lib/python3.12/site-packages/jupyterlab
[I 2024-09-30 07:38:54.801 LabApp] JupyterLab application directory is /zdata/Github/zpytorch/share/jupyter/lab
[I 2024-09-30 07:38:54.802 LabApp] Extension Manager is 'pypi'.
[I 2024-09-30 07:38:54.851 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-09-30 07:38:54.851 ServerApp] Serving notebooks from local directory: /zdata/Github/zpytorch
[I 2024-09-30 07:38:54.851 ServerApp] Jupyter Server 2.14.2 is running at:
[I 2024-09-30 07:38:54.851 ServerApp] http://localhost:8888/lab?token=ace39a03178ea3bc48042bf22ee291adfa82942ca54a03c0
[I 2024-09-30 07:38:54.851 ServerApp]     http://127.0.0.1:8888/lab?token=ace39a03178ea3bc48042bf22ee291adfa82942ca54a03c0
[I 2024-09-30 07:38:54.851 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2024-09-30 07:38:54.873 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/zzh/.local/share/jupyter/runtime/jpserver-5944-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=ace39a03178ea3bc48042bf22ee291adfa82942ca54a03c0
        http://127.0.0.1:8888/lab?token=ace39a03178ea3bc48042bf22ee291adfa82942ca54a03c0

 

 

Open a .ipynb file and click the 'Select Kernel' link on the top-right corner:

 

 

 

Select this Jupyter Kernel.

posted on 2024-09-30 07:53  ZhangZhihuiAAA  阅读(14)  评论(0编辑  收藏  举报