概述
前言: Jupter 在windwos下如何安装,运行。本文做一些实践记录。
JupyterLab: Jupyter’s Next-Generation Notebook Interface
JupyterLab is a web-based interactive development environment for Jupyter notebooks, code, and data. JupyterLab is flexible: configure and arrange the user interface to support a wide range of workflows in data science, scientific computing, and machine learning. JupyterLab is extensible and modular: write plugins that add new components and integrate with existing ones.
The Jupyter Notebook
The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.
1 安装:
打开,windows,cmd命令行窗口(在开始里面,输入cmd)
输入,
pip install jupyter
Collecting jupyter
Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting nbconvert
Downloading nbconvert-6.2.0-py3-none-any.whl (553 kB)
|████████████████████████████████| 553 kB 327 kB/s
Collecting notebook
Downloading notebook-6.4.4-py3-none-any.whl (9.9 MB)
|████████████████████████████████| 9.9 MB 2.2 MB/s
Collecting ipykernel
Downloading ipykernel-6.4.1-py3-none-any.whl (124 kB)
|████████████████████████████████| 124 kB 2.2 MB/s
Collecting ipywidgets
Downloading ipywidgets-7.6.5-py2.py3-none-any.whl (121 kB)
|████████████████████████████████| 121 kB 6.4 MB/s
Collecting qtconsole
Downloading qtconsole-5.1.1-py3-none-any.whl (119 kB)
|████████████████████████████████| 119 kB 2.2 MB/s
Collecting jupyter-console
Downloading jupyter_console-6.4.0-py3-none-any.whl (22 kB)
Collecting ipython<8.0,>=7.23.1
Downloading ipython-7.28.0-py3-none-any.whl (788 kB)
|████████████████████████████████| 788 kB 2.2 MB/s
Collecting debugpy<2.0,>=1.0.0
Downloading debugpy-1.4.3-cp39-cp39-win_amd64.whl (4.3 MB)
|████████████████████████████████| 4.3 MB 3.3 MB/s
Collecting tornado<7.0,>=4.2
Downloading tornado-6.1-cp39-cp39-win_amd64.whl (422 kB)
|████████████████████████████████| 422 kB 6.4 MB/s
Collecting traitlets<6.0,>=4.1.0
Downloading traitlets-5.1.0-py3-none-any.whl (101 kB)
|████████████████████████████████| 101 kB 2.2 MB/s
Collecting matplotlib-inline<0.2.0,>=0.1.0
Downloading matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB)
Collecting jupyter-client<8.0
Downloading jupyter_client-7.0.3-py3-none-any.whl (122 kB)
|████████████████████████████████| 122 kB 6.4 MB/s
Collecting ipython-genutils
Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting pickleshare
Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting decorator
Downloading decorator-5.1.0-py3-none-any.whl (9.1 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Downloading prompt_toolkit-3.0.20-py3-none-any.whl (370 kB)
|████████████████████████████████| 370 kB 3.3 MB/s
Collecting pygments
Downloading Pygments-2.10.0-py3-none-any.whl (1.0 MB)
|████████████████████████████████| 1.0 MB 6.4 MB/s
Collecting jedi>=0.16
Downloading jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
|████████████████████████████████| 1.4 MB 6.8 MB/s
Requirement already satisfied: setuptools>=18.5 in d:programspythonpython39libsite-packages (from ipython<8.0,>=7.23.1->ipykernel->jupyter) (56.0.0)
Collecting colorama
Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting backcall
Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting parso<0.9.0,>=0.8.0
Downloading parso-0.8.2-py2.py3-none-any.whl (94 kB)
|████████████████████████████████| 94 kB 1.0 MB/s
Collecting nest-asyncio>=1.5
Downloading nest_asyncio-1.5.1-py3-none-any.whl (5.0 kB)
Collecting entrypoints
Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting pyzmq>=13
Downloading pyzmq-22.3.0-cp39-cp39-win_amd64.whl (1.0 MB)
|████████████████████████████████| 1.0 MB 6.4 MB/s
Collecting python-dateutil>=2.1
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
|████████████████████████████████| 247 kB 6.8 MB/s
Collecting jupyter-core>=4.6.0
Downloading jupyter_core-4.8.1-py3-none-any.whl (86 kB)
|████████████████████████████████| 86 kB 1.8 MB/s
Collecting pywin32>=1.0
Downloading pywin32-301-cp39-cp39-win_amd64.whl (9.3 MB)
|████████████████████████████████| 9.3 MB 3.3 MB/s
Collecting wcwidth
Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting six>=1.5
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting nbformat>=4.2.0
Downloading nbformat-5.1.3-py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 6.4 MB/s
Collecting jupyterlab-widgets>=1.0.0
Downloading jupyterlab_widgets-1.0.2-py3-none-any.whl (243 kB)
|████████████████████████████████| 243 kB 6.4 MB/s
Collecting widgetsnbextension~=3.5.0
Downloading widgetsnbextension-3.5.1-py2.py3-none-any.whl (2.2 MB)
|████████████████████████████████| 2.2 MB 6.4 MB/s
Collecting jsonschema!=2.5.0,>=2.4
Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
|████████████████████████████████| 56 kB 785 kB/s
Collecting pyrsistent>=0.14.0
Downloading pyrsistent-0.18.0-cp39-cp39-win_amd64.whl (62 kB)
|████████████████████████████████| 62 kB 295 kB/s
Collecting attrs>=17.4.0
Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
|████████████████████████████████| 53 kB 943 kB/s
Collecting jinja2
Downloading Jinja2-3.0.1-py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 6.4 MB/s
Collecting Send2Trash>=1.5.0
Downloading Send2Trash-1.8.0-py3-none-any.whl (18 kB)
Collecting argon2-cffi
Downloading argon2_cffi-21.1.0-cp35-abi3-win_amd64.whl (40 kB)
|████████████████████████████████| 40 kB 1.2 MB/s
Collecting prometheus-client
Downloading prometheus_client-0.11.0-py2.py3-none-any.whl (56 kB)
|████████████████████████████████| 56 kB 565 kB/s
Collecting terminado>=0.8.3
Downloading terminado-0.12.1-py3-none-any.whl (15 kB)
Collecting pywinpty>=1.1.0
Downloading pywinpty-1.1.4-cp39-none-win_amd64.whl (1.3 MB)
|████████████████████████████████| 1.3 MB 6.4 MB/s
Collecting cffi>=1.0.0
Downloading cffi-1.14.6-cp39-cp39-win_amd64.whl (180 kB)
|████████████████████████████████| 180 kB 6.4 MB/s
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
|████████████████████████████████| 112 kB 6.8 MB/s
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.0.1-cp39-cp39-win_amd64.whl (14 kB)
Collecting jupyterlab-pygments
Downloading jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting testpath
Downloading testpath-0.5.0-py3-none-any.whl (84 kB)
|████████████████████████████████| 84 kB 1.3 MB/s
Collecting defusedxml
Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting bleach
Downloading bleach-4.1.0-py2.py3-none-any.whl (157 kB)
|████████████████████████████████| 157 kB ...
Collecting pandocfilters>=1.4.1
Downloading pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting mistune<2,>=0.8.1
Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting nbclient<0.6.0,>=0.5.0
Downloading nbclient-0.5.4-py3-none-any.whl (66 kB)
|████████████████████████████████| 66 kB 1.0 MB/s
Collecting webencodings
Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting packaging
Downloading packaging-21.0-py3-none-any.whl (40 kB)
|████████████████████████████████| 40 kB 854 kB/s
Collecting pyparsing>=2.0.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|████████████████████████████████| 67 kB 1.7 MB/s
Collecting qtpy
Downloading QtPy-1.11.2-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 2.9 MB/s
Installing collected packages: traitlets, six, pywin32, pyrsistent, attrs, wcwidth, tornado, pyzmq, python-dateutil, pyparsing, parso, nest-asyncio, jupyter-core, jsonschema, ipython-genutils, entrypoints, webencodings, pygments, pycparser, prompt-toolkit, pickleshare, packaging, nbformat, matplotlib-inline, MarkupSafe, jupyter-client, jedi, decorator, colorama, backcall, testpath, pywinpty, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, ipython, defusedxml, debugpy, cffi, bleach, terminado, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, notebook, widgetsnbextension, qtpy, jupyterlab-widgets, qtconsole, jupyter-console, ipywidgets, jupyter
Successfully installed MarkupSafe-2.0.1 Send2Trash-1.8.0 argon2-cffi-21.1.0 attrs-21.2.0 backcall-0.2.0 bleach-4.1.0 cffi-1.14.6 colorama-0.4.4 debugpy-1.4.3 decorator-5.1.0 defusedxml-0.7.1 entrypoints-0.3 ipykernel-6.4.1 ipython-7.28.0 ipython-genutils-0.2.0 ipywidgets-7.6.5 jedi-0.18.0 jinja2-3.0.1 jsonschema-3.2.0 jupyter-1.0.0 jupyter-client-7.0.3 jupyter-console-6.4.0 jupyter-core-4.8.1 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.0.2 matplotlib-inline-0.1.3 mistune-0.8.4 nbclient-0.5.4 nbconvert-6.2.0 nbformat-5.1.3 nest-asyncio-1.5.1 notebook-6.4.4 packaging-21.0 pandocfilters-1.5.0 parso-0.8.2 pickleshare-0.7.5 prometheus-client-0.11.0 prompt-toolkit-3.0.20 pycparser-2.20 pygments-2.10.0 pyparsing-2.4.7 pyrsistent-0.18.0 python-dateutil-2.8.2 pywin32-301 pywinpty-1.1.4 pyzmq-22.3.0 qtconsole-5.1.1 qtpy-1.11.2 six-1.16.0 terminado-0.12.1 testpath-0.5.0 tornado-6.1 traitlets-5.1.0 wcwidth-0.2.5 webencodings-0.5.1 widgetsnbextension-3.5.1
WARNING: You are using pip version 21.1.2; however, version 21.2.4 is available.
You should consider upgrading via the 'd:programspythonpython39python.exe -m pip install --upgrade pip' command.
【案】我们尝试打开jupyter,
jupyter lab --no-browser
[I 2021-09-26 21:39:10.475 ServerApp] jupyterlab | extension was successfully linked.
[I 2021-09-26 21:40:03.628 ServerApp] Writing Jupyter server cookie secret to C:Usersfrank_sjAppDataRoamingjupyterruntimejupyter_cookie_secret
[W 2021-09-26 21:40:03.672 ServerApp] The 'min_open_files_limit' trait of a ServerApp instance expected an int, not the NoneType None.
[I 2021-09-26 21:40:05.137 ServerApp] nbclassic | extension was successfully loaded.
[I 2021-09-26 21:40:05.139 LabApp] JupyterLab extension loaded from d:programspythonpython39libsite-packagesjupyterlab
[I 2021-09-26 21:40:05.139 LabApp] JupyterLab application directory is D:ProgramsPythonPython39sharejupyterlab
[I 2021-09-26 21:40:05.144 ServerApp] jupyterlab | extension was successfully loaded.
[I 2021-09-26 21:40:05.148 ServerApp] The port 8888 is already in use, trying another port.
[I 2021-09-26 21:40:05.152 ServerApp] Serving notebooks from local directory: C:Usersfrank_sj
[I 2021-09-26 21:40:05.152 ServerApp] Jupyter Server 1.11.0 is running at:
[I 2021-09-26 21:40:05.153 ServerApp] http://localhost:8889/lab?token=e659cca8dbacab41bc951c9f4590eca9ed17ca4c35952db8
[I 2021-09-26 21:40:05.153 ServerApp] or http://127.0.0.1:8889/lab?token=e659cca8dbacab41bc951c9f4590eca9ed17ca4c35952db8
[I 2021-09-26 21:40:05.154 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2021-09-26 21:40:05.169 ServerApp]To access the server, open this file in a browser:
file:///C:/Users/frank_sj/AppData/Roaming/jupyter/runtime/jpserver-45804-open.html
Or copy and paste one of these URLs:
http://localhost:8889/lab?token=e659cca8dbacab41bc951c9f4590eca9ed17ca4c35952db8
or http://127.0.0.1:8889/lab?token=e659cca8dbacab41bc951c9f4590eca9ed17ca4c35952db8
上面的LOGO,给我们如下信息:
打开jupter notebooks
在浏览器地址栏输入,上面绿色的地址,任意一个。
2 修改工作路径:
利用Jupyter的时候,项目需要设定一个指定的工作地址:
参考:
Project Jupyter | Home
jupyter notebook 可以做哪些事情? - 知乎
在 Windows 上安装和配置 Jupyter Lab 作为桌面级应用程序_My Blogs-CSDN博客_jupyterlab安装
最后
以上就是满意灯泡为你收集整理的Jupter 在windows下的运行1 安装:2 修改工作路径:的全部内容,希望文章能够帮你解决Jupter 在windows下的运行1 安装:2 修改工作路径:所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复