服务器运行jupyter notebook 解决服务器运行jupyter notebook方法

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

服务器运行jupyter notebook 解决服务器运行jupyter notebook方法

刘润森!   2021-08-30 我要评论
想了解解决服务器运行jupyter notebook方法的相关内容吗,刘润森!在本文为您仔细讲解服务器运行jupyter notebook的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:服务器运行jupyter,notebook,服务器运行解决办法,下面大家一起来学习吧。

今天教大家

服务器运行jupyter notebook

第一,给我买一台服务器

要知道公网ip

虚拟环境

mkvirtualenv -p /usr/bin/python3.6 deeplearn
workon deeplearn
pip install tensorflow
pip install jupyter

然后

vim ~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.password = 'sha1:6c132ae43f5c:4b4cf1efc42fba2c1480e3283c6bcb9769313bdb'

然后关防火墙

root@VM-0-5-ubuntu:~# firewall-cmd --state
running
root@VM-0-5-ubuntu:~# systemctl stop firewalld.service
root@VM-0-5-ubuntu:~# systemctl disable firewalld.service 
Synchronizing state of firewalld.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable firewalld
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

打开jupyter notebook

在这里插入图片描述

打开浏览器,跑起来

在这里插入图片描述

也可以将服务器换成本地的,建立一个隧道

在这里插入图片描述

在这里插入图片描述

本地打开没问题

在这里插入图片描述

服务器跑Jupyter就完成啦,以上就是解决服务器运行jupyter notebook方法的详细内容,更多关于服务器运行jupyter notebook的资料请关注其它相关文章!

猜您喜欢

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们