背景

Jupyter 是一款优秀的编程语言运行环境包括Hub、Lab、Notebook等优秀自项目,JupyterNotebook是衍生的在线交互运行平台的前端项目

环境

  • Windows 11
  • Node 18 (要求>16)
  • npm 6 (要求<7)

步骤

  1. clone项目,切换到稳定分支,如5.7.x,在线地址:https://github.com/jupyter/notebook
  2. 安装依赖,先通过python安装Jupyter的其他组件,notebook项目依赖其他组件
pip install jupyter
pip install jupyterlab
  1. 项目安装
yarn install
  1. 项目打包【可选】
  • 由于网络问题可能导致bower命令执行失败,加载github相关网站资源加载不到,在项目的.bowerrc文件中增加bower proxy,亲测有用,git和npm暂不用设置
yarn run build
#bower
"proxy": "http://127.0.0.1:10809",
"https-proxy": "http://127.0.0.1:10809",
"strict-ssl": false
#git
[http]
proxy = http://127.0.0.1:10809
[https]
proxy = http:127.0.0.1:10809
[url "https://"]
insteadOf = git://
#npm
npm config set proxy http://127.0.0.1:10809
npm config set https-proxy http://127.0.0.1:10809 #手动拷贝文件
notebook\static\components\jquery\dist\jquery.min.js -> \notebook\static\components\jquery\jquery.min.js
  1. notebook卸载
pip uninstall jupyter -y
pip uninstall jupyter_core -y
pip uninstall jupyter-client -y
pip uninstall jupyter-console -y
pip uninstall notebook -y
pip uninstall qtconsole -y
pip uninstall nbconvert -y
pip uninstall nbformat -y
  1. 启动项目
python3 -m notebook --port 8989

启动起来就能访问了

后记

  • 切换版本以后再CONTRIBUTING.rst文件里有完整的开发环境搭建方法,确实非常非常的难找

最新文章

  1. 如何让win10实现关机确认-暂没确认
  2. jQuery插件(多级菜单)
  3. 浅谈图片蒙版效果-webkit-mask
  4. 对jQuery选择器的总结
  5. nodejs获取当前url和url参数值
  6. 在 ASP.NET 中使用 jQuery.load() 方法
  7. sql server 相似度对比
  8. Spring Security (Acegi)的登陆配置
  9. MVC框架是什么
  10. ACM中常用的C/C++函数
  11. git第三篇---建立一个project
  12. JavaScript中的栈及通过栈操作的实例
  13. div自身高度、屏幕高度
  14. 20161110-awk、sed测试题
  15. UIDatePicker在swift中的使用
  16. 51Nod 2006 飞行员配对(二分图最大匹配)
  17. Unity---Inspector面板自定义
  18. $.getJSON的缓存问题处理
  19. Scala语言开发入门
  20. Python3基础 list 索引查看元素

热门文章

  1. Linux:atime、mtime、ctime
  2. Flutter:学习 StatelessWidget 和 StatefulWidget
  3. PostGIS之Geometry
  4. LeetCode-429 N叉树的层次遍历
  5. redhat6.5_server_install
  6. 在Qt4中添加QSerialPort模块
  7. JDK的版本有多少种,Java开发者应该选择哪一种?
  8. python ddt file_data
  9. Day13 字符串的常用方法
  10. 关于elasticsearch使用ceph作为存储