摘要: 1、选择 k # 选中上面的 cell j # 选中下面的 cell 2、多选、合并和拆分 Shift+上下键 # 按住Shift进行上下键操作可复选多个cell Shift-M # 合并所选cell或合并当前cell和下方的cell Ctrl + Shift + - # 从光标所在的位置拆分cel 阅读全文
posted @ 2019-12-08 18:25 赏尔 阅读(7227) 评论(0) 推荐(0) 编辑
摘要: 1)%pwd 于显示Jupyter当前的工作空间。 2)%hist 显示当前Jupyter中,所有运行过的历史代码。 3)%who 显示当前Jupyter环境中的所有变量或名称。 4)%reset 删除当前Jupyter环境中的所有变量或名称。 5)%time 计算当前代码行的运行时长。 6)%ti 阅读全文
posted @ 2019-12-08 18:24 赏尔 阅读(1946) 评论(0) 推荐(0) 编辑
摘要: 1、依次在 anaconda prompt 窗口中执行以下两句命令 pip install jupyter_contrib_nbextensions # 安装第三方包 jupyter contrib nbextension install --user --skip-running-check # 阅读全文
posted @ 2019-12-08 17:50 赏尔 阅读(2340) 评论(0) 推荐(0) 编辑
摘要: 不论是jupyter notebook 还是 jupyter lab 都可以添加多个 python 内核,并且随意切换。 1、切换到要添加的虚拟环境,确认是否安装 ipykernel python -m ipykernel --version 如果没有安装,则安装: python -m pip in 阅读全文
posted @ 2019-12-08 17:18 赏尔 阅读(8382) 评论(0) 推荐(0) 编辑
摘要: 通过命令行窗口或 Anaconda Prompt 窗口 1、安装 Jupyter 主题 pip install jupyterthemes 2、更新 Jupyter 主题 (可选) pip install --upgrade jupyterthemes 3、查看可用的 Jupyter 主题 jt - 阅读全文
posted @ 2019-12-08 16:42 赏尔 阅读(31138) 评论(1) 推荐(3) 编辑
摘要: 1、准备环境,探索数据 import numpy as np from keras.models import Sequential from keras.layers import Dense import matplotlib.pyplot as plt # 创建数据集 rng = np.ran 阅读全文
posted @ 2019-12-08 13:41 赏尔 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: 说明:此操作是在 Anaconda Prompt 窗口完成的 CPU版 tensorflow 的安装。 1、用 conda 创建虚拟环境 tensorflow python=3.6 conda create -n tensorflow python=3.6 conda activate tensor 阅读全文
posted @ 2019-12-08 10:48 赏尔 阅读(5959) 评论(0) 推荐(0) 编辑