原本我一直以为需要启动anaconda才能去开启jupyter,但是看到同学的windows可以直接通过菜单去开启并使用jupyter,所以我意识到开启jupyter不需要那么复杂。那么Linux中有没有更方便的方法去启动呢?
首先我们要知道anaconda仅仅是一个集成的环境可以管理我们的一些开发工具。
和windows并不相同的是,Linux中的jupyter并不是和本机隔离的,jupyter直接使用我们主机下python的环境。
通过pip list命令我们可以看到本地计算机安装的jupyter
启动jupyter
那么如何启动呢?
使用
jupyter notebook
通过tldr我们可以看到更多的用法
❯ tldr jupyter
jupyterWeb application to create and share documents that contain code, visualizations and notes.
Primarily used for data analysis, scientific computing and machine learning.
More information: https://jupyter.org.- Start a Jupyter notebook server in the current directory:jupyter notebook- Open a specific Jupyter notebook:jupyter notebook example.ipynb- Export a specific Jupyter notebook into another format:jupyter nbconvert --to html|markdown|pdf|script example.ipynb- Start a server on a specific port:jupyter notebook --port=port- List currently running notebook servers:jupyter notebook list- Stop the currently running server:jupyter notebook stop- Start JupyterLab, if installed, in the current directory:jupyter lab