1.为什么我们编写python要使用Jupyter Notebook;

Notebookd是计算+文档的混合体,而本身又是web-based;要想详细了解jupyter notebook;请点击链接

接下来我们就使用pip(python的包管理工具)来安装使用jupyter notebook(交互式笔记本,利于编写python,可以保存下载代码和运行后结果,方便操作);

2.对于Jupyter notebook安装和启动

1>,windowns+r键切换出windows命令窗口,输入cmd在黑窗口中执行:pip install jupyter;

(一),python Jupyter Notebook 的安装和个性化启动

2>,执行完毕后:查看是否安装成功;

如果以前安装过python忘记安装目录的可以在黑窗口执行:where python 则可以显示python安装位置:

(一),python Jupyter Notebook 的安装和个性化启动

(一),python Jupyter Notebook 的安装和个性化启动

3>,启动jupyter notebook

在python安装目录:{python}\Scripts;执行 jupyter notebook;执行后浏览器会自动跳转说明安装成功;

(一),python Jupyter Notebook 的安装和个性化启动

4>,对于jupyter notebook习惯的一些配置 :

在黑窗口执行: jupyter notebook --generat-config会生成以下路径文件:

C:\Users\DELL\.jupyter\jupyter_notebook_config.py

(一),python Jupyter Notebook 的安装和个性化启动

(一),python Jupyter Notebook 的安装和个性化启动

生成后修改配置:修改自己自定义工作空间:

找到以下配置创建自己的工作空间并添加路径到其中:

(一),python Jupyter Notebook 的安装和个性化启动

5>、指定端口和ip启动

jupyter notebook --no-browser --port ${port} --ip=${IP}

相关文章:

  • 2021-04-19
  • 2022-01-12
  • 2022-02-07
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-19
  • 2021-12-01
  • 2021-08-14
  • 2021-05-25
  • 2021-06-01
  • 2021-09-09
相关资源
相似解决方案