如何使用Jupyter Notebook定制个性化python
发表于:2024-10-07 作者:千家信息网编辑
千家信息网最后更新 2024年10月07日,这篇文章给大家介绍如何使用Jupyter Notebook定制个性化python,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。现阶段python在人工智能及数据分析中得到了很多的
千家信息网最后更新 2024年10月07日如何使用Jupyter Notebook定制个性化python
这篇文章给大家介绍如何使用Jupyter Notebook定制个性化python,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。
现阶段python在人工智能及数据分析中得到了很多的实践成果。而python的编辑器也有很多种,如:pychram、N++、jupyter……其中jupyter以web的形式来进行编辑的工具。接下来讲下如何使用睿江云服务来部署jupyter这强大的工具。
一、环境配置
1.centeos7
2.python3
二、安装jupyter notebook
安装jupyter安装Jupyter Notebook 通过pip安装Jupyter Notebook#安装jupyter notebook python3 -m pip install jupyter#安装完会在python3的包管理器,创建一个软连接以便在任何地方都可以直接执行 ln -s /usr/local/python3/bin/jupyter /usr/bin/jupyter通过jupyter notebook命令启动Jupyter服务器,验证是否安装成功[root@instance-hrnebyqu bin]# jupyter notebook --allow-root[I 11:26:22.273 NotebookApp] JupyterLab beta preview extension loaded from /root/anaconda3/lib/python3.6/site-packages/jupyterlab[I 11:26:22.273 NotebookApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab[I 11:26:22.277 NotebookApp] Serving notebooks from local directory: /root/ipython
至此,Jupyter Notebook安装成功。
配置外部访问 关闭防火墙(CentOS7) systemctl stop firewalld.service systemctl disable firewalld.service 生成Jupyter Notebook配置文件 jupyter notebook --generate-config 通过 ipython 创建登录密码:(这个要进入python3的bin目录执行) In [2]: passwd() Enter password: Verify password: Passwords do not match. Enter password: Verify password: Out[2]: 'sha1:b79414f2844a:27a3bd36f0d79a1e51664e21e75559b3c5554db4' 编辑生成的配置文件 /root/.jupyter/jupyter_notebook_config.py,并在文件头添加如下配置信息: [root@instance-hrnebyqu bin]# vim /root/.jupyter/jupyter_notebook_config.py c.NotebookApp.ip='0.0.0.0' #监听所有的地址 c.NotebookApp.password = u'sha1:153a389b3933:9e8c3bcaf7690cf46931f81c21e39753d3a1696d' #就是前面生成的密码 c.NotebookApp.open_browser = False c.NotebookApp.port =8888 #指定端口 c.NotebookApp.notebook_dir = "/root/ipython" #jupyter的工作目录
通过浏览器访问地址:
http://ipaddress:8888/
在jupyter中安装查看卸载第三方包:
import pipdef pip_install(package): pip.main(['install', package])def pip_list(): print(pip.main(['list']))def pip_uninstall(package): pip.main(['uninstall', package])
以上是jupyter的安装及配置的简单讲解,之后可以安装一个属于自己的云端python编辑器。
关于如何使用Jupyter Notebook定制个性化python就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
配置
文件
生成
个性
成功
内容
地址
密码
工具
更多
目录
编辑器
帮助
服务
不错
强大
云端
人工
人工智能
兴趣
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
一梦江湖泠音服务器
网络安全性怎么更改
维基学堂网络安全
工业串口服务器报价
数据库大师课
什么数据库能查到耐药
疫情防控的数据库
用电脑虚拟服务器
苹果服务器在贵州还是那么慢
湖南字牌软件开发
云服务器传统服务器租赁费用
三丰云服务器怎么开端口
2020国家网络安全活动
网络技术应用文件下载方式
正确认识网络安全作文
PPT数据库模版怎么不能用
软件开发英文常问问题
绵阳软件开发园在哪里
天津软件开发驻场服务
四六级模拟试题数据库
军事网络安全能力成熟度
工作室服务器主机
网络安全宣传举措
成都项目软件开发怎么样
游戏软件开发内容
自动售货机系统数据库设计
服务器荡机
宿舍管理数据库触发器
bim软件开发待遇
小学宣传网络安全法方案