jupyter-notebook
jjw_zyfx
仅当做个人笔记使用
展开
-
jupyter notebook在服务器上运行,并映射到本地电脑
1、首先要在你的服务器上安装jupyterpip install jupyter2、jupyter安装完成后在服务器上运行起来jupyter notebook运行结果如下:3、在本地服务器上打开一个终端,然后输入如下内容ssh -p 22 -L 8888:127.0.0.1:8888 # 你的服务器的用户名@你的服务器的IP地址# 例如: ssh -p 22 -L 8888:127.0.0.1:8888 user@10.107.40.134、回车后会提醒你输入你登录服务器时的密码原创 2022-04-13 16:14:04 · 1750 阅读 · 0 评论 -
jupyter-notebook中将代码写入到文件的命令
具体代码如下%%file mnist_tools.pyimport osimport os.pathimport urllibimport gzipimport shutilimport numpy as npimport matplotlib.pyplot as pltif not os.path.exists('mnist'): os.mkdir("mnist")def download_and_gzip(name): if not os.path.exist.原创 2021-08-09 21:31:10 · 938 阅读 · 0 评论 -
jupyter-notebook 和 python的基础语法
打开jupyter-notebook的方法,在终端中直接输入jupyter-notebook 回车即可运行的方法:注: shift+回车 光标会向下移一行,也可以用command+回车(光标不会下移)原创 2021-08-03 21:59:14 · 207 阅读 · 1 评论