jupyter notebook安装与使用

安装jupyter notebook
使用参考:https://blog.csdn.net/u011630575/article/details/84871792?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.nonecase

安装jupyter notebook的过程,直接下载anaconda3就可以自动把这个装完

下面的在anaconda prompt中运行即可
#建议在jupyter notebook 上安装jupytext,以便能够将本书各章节markdown⽂件视作ipynb⽂件
运⾏
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U jupytext

#建议在jupyter notebook 上安装最新版本tensorflow 测试本书中的代码
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U tensorflow

测试

import tensorflow as tf
#注:本书全部代码在tensorflow 2.1版本测试通过
tf.print("tensorflow version:",tf.__version__) a = tf.constant("hello") b = tf.constant("tensorflow2") c = tf.strings.join([a,b]," ")
tf.print(c)
tensorflow version: 2.1.0
hello tensorflow2

打开jupyter notebook安装与使用_第1张图片
可走单步运行
jupyter notebook安装与使用_第2张图片
可将md或者ipynb复制到其中,直接运行
jupyter notebook安装与使用_第3张图片

你可能感兴趣的:(python,tensorflow)