应该是在安装其它python第三方库时更新了prompt-toolkit版本,降级到下面的版本即可: sudo pip install 'prompt-toolkit==1.0.15'…
# jupyter notebook添加Anaconda虚拟环境的kernel #  开启虚拟环境 (base) C:\Users\jiangshan>activate tensorflow #  首先向虚拟环境安装ipykernel(tensorflow) C:\Users\jiangshan>conda install -n tensorflow ipykernel # 进行配置(tensorflow) C:\Users\jiangshan>python -m ipykernel i…
昨天学习pandas和matplotlib的过程中, 在jupyter notebook遇到ImportError: matplotlib is required for plotting错误, 以下是解决该问题的具体描述, 在此记录, 给后面学习的朋友提供一个参考. 环境 win8.1, python3.7, jupyter notebook 问题描述 import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv(r"…
由于需要用到python中的某个库,因此打开命令行窗口cmd,然后使用pip安装.安装成功后,在cmd中输入python调出python环境,import该模块并使用,可以正常使用.但是打开juypter notebook,import该模块,却显示No module xxx found.出现这种情况的原因是juypter notebook和spyder等都是安装Anaconda时安装的,它们依赖的是Anaconda所配置的库路径,而Anaconda所配置的库路径没有包含当前的python的库路…
问题描述 打开d2l-zh目录,使用jupyter notebook打开文件运行,import mxnet 出现无法导入mxnet模块的问题, 但是命令行运行是可以导入mxnet模块的. 原因: 激活环境是能够运行代码的前提. 解决方法: 在d2l-zh目录运行conda activate gluon命令,然后再打开jupyter notebook,则可以正常导入mxnet模块. 参考 1. d2l-zh-doc; 2. [动手学深度学习]中Jupyter notebook中 import mx…
一.jupyter notebool介绍 Jupyter Notebook是Ipython的升级版,而Ipython可以说是一个加强版的交互式 Shell,也就是说,它比在terminal里运行python会更方便,界面更友好,功能也更强大. 二.安装 pip install jupyter #打开jupyter notebook 也只需要在终端输入:win + R jupyter notebook 然后浏览器就显示下面的界面: 在dos窗口运行jupyter notebook后出现:canno…
远程访问Jupyter Notebook Jupyter Notebook很好用,但是直接远程在服务器上用体验当然不如本地计算机好,那么如何远程访问呢? 首先需要在服务器上安装好ipython, jupyter notebook, pip install ipython pip install jypyter 生成配置文件 jupyter notebook --generate-config 生成密码 打开ipython, 创建一个密文密码 In [1]: from notebook.auth…
转载自:https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/ Jupyter notebook, formerly known as the IPython notebook, is a flexible tool that helps you create readable analyses, as you can keep code, images, comments, formulae and plots…
来自: 代码大湿 代码大湿 1 相关介绍 jupyter notebook是一个Web应用程序,允许你创建和分享,包含活的代码,方程的文件,可视化和解释性文字.用途包括:数据的清洗和转换.数值模拟.统计建模.机器学习和更多.支持40多中语言.python ,R,go,scala等. Spark是UC Berkeley AMP lab所开源的类Hadoop MapReduce的通用并行框架,Spark,拥有Hadoop MapReduce所具有的优点:但不同于MapReduce的是Job中间输出结…
Jupyter Notebook Jupyter Notebook 以前被称为IPython notebook.Jupyter Notebook是一款能集各种分析包括代码.图片.注释.公式及自己画的图一体的灵活工具. Jupyter 具有可扩展性.它支持多种语言,能容易的部署到自己的计算机或远程服务器上.用户只要通过ssh或http就能访问远程的Jupyter.更赞的是Jupyter完全免费. Jupyter接口 1 快捷键 正如大神所知,使用快捷键能省很多时间.在菜单Help→Keyboard…
一.Jupyter介绍 Jupyter Notebook是一个交互式笔记本,支持运行40多种编程语言.Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化程序文档,支持实时代码,数学方程,可视化和 markdown.用途包括:数据清理和转换,数值模拟,统计建模,机器学习等等. 二.安装步骤 环境:Docker(17.04.0-ce).镜像Ubuntu(16.04.3) 1. 更新软件列表 root@787c084a44e4:~# apt-get update 2…
记录一下学习深度学习的小事情: 1.tensorflow 现在只支持windows 64位系统: 2.因为实验室的电脑比较老旧,Gpu配置低,所以选择安装的是tensorflow Cpu版本,对于学习来说是完全够用了,等进阶之后再砸钱买个好的显卡. 3.因为需要完成吴恩达深度学习视频的作业(网上下载的作业版本),需要使用jupyter打开,所以得使jupyter能import tensorflow. 4.因为使用anaconda方式进行安装,所以不支持python3.6版本.(官网解释如图) 现…
jupyter-notebook 安装及远程访问 Introduction Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言 Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化程序文档,支持实时代码,数学方程,可视化和 markdown Install pip install jupyter Start jupyter-notebook Remote Visit # create…
最近项目需要改写jupyter notebook的内核,由于内功不够,英语过差,读文档真的是心痛,然后各种搜索找到了一篇不错的讲解. 转自:http://blog.just4fun.site/jupyter-notebook-architecture.html 在jupyter主页上,官方有对其做个简要说明: The Jupyter Notebook is based on a set of open standards for interactive computing. Think HTML…
h1 { counter-reset: h2counter; } h2 { counter-reset: h3counter; } h3 { counter-reset: h4counter; } h4 { counter-reset: h5counter; } h5 { counter-reset: h6counter; } h6 { } h2:before { counter-increment: h2counter; content: counter(h2counter) ".\0000a…
Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言.在本文中,我们将介绍 Jupyter notebook 的主要特性,以及为什么对于希望编写漂亮的交互式文档的人来说是一个强大工具. 在开始使用 notebook 之前,我们先在cmd中使用pip安装该库 pip install jupyter 安装好之后运行命令 jupyter notebook 你会看到: [I 08:34:12.265 NotebookApp] W…
Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言.在本文中,我们将介绍 Jupyter notebook 的主要特性,以及为什么对于希望编写漂亮的交互式文档的人来说是一个强大工具. 在开始使用 notebook 之前,我们先需要安装该库.你可以在Jupyter 官网上找到完整的步骤. 译者注:其实只要pip install jupyter就可以了 jupyter notebook 运行上面的命令之后,你将看到类似下面…
1.jupyter notebook --generate-config 2.修改jupyter_notebook_config.py配置文件 3.修改默认路径: c.NotebookApp.notebook_dir = 'E:\DataAnalysis' 4.修改默认浏览器: import webbrowser webbrowser.register("chrome", None, webbrowser.GenericBrowser(u"C:\\Program Files…
Anaconda安装好Juypyter Notebook之后,只能在base环境里启动,在系统的命令行里要全局启动Jupyter NoteBook失败了 C:\Users\HP>jupyter notebook Traceback (most recent call last): File "D:\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module> from notebook.noteb…
1.快捷键 Jupyter Notebook 有两种键盘输入模式.编辑模式,允许你往单元中键入代码或文本:这时的单元框线是绿色的.命令模式,键盘输入运行程序命令:这时的单元框线是灰色. 命令模式 (按键 Esc 开启) Enter : 转入编辑模式 Shift-Enter : 运行本单元,选中下个单元 Ctrl-Enter : 运行本单元 Alt-Enter : 运行本单元,在其下插入新单元 Y : 单元转入代码状态 M :单元转入markdown状态 R : 单元转入raw状态 1 : 设定…
When I write PySpark code, I use Jupyter notebook to test my code before submitting a job on the cluster. In this post, I will show you how to install and run PySpark locally in Jupyter Notebook on Windows. I've tested this guide on a dozen Windows 7…
windows中访问远程服务器的方式有很多种:使用windows系统自带的网络功能,直接输入服务器地址访问:使用putty软件远程访问:使用xftp软件登陆:还可以使用x2go客户端图形界面远程访问.... 下面要说的是,使用python中的jupyter notebook来远程访问.具体配置过程如下; 在服务器中: 1.安装python sudo apt-get install python 2.安装anaconda(登陆服务的conda环境中才需要,如果服务器不需要用到anaconda可忽略…
最近又要用notebook  转一篇我原来写的安装教程 还是很好用的. IPython是一个 Python 的一个交互式 shell,它提供了很多内建的函数.Jupyter Notebook是IPython的一个Web接口,其实它也支持其它语言.它可以展现富文本,使得整个工作可以以笔记的形式展现.存储,适合做数据分析,交互编程和学习. 本文纪录了在CentOS上搭建Jupyter Notebook的步骤. 参考网址:http://www.linuxdiyf.com/linux/22884.htm…
原本以为,当进入虚拟环境之后,再运行jupyter notebook应该是这个环境下的jupyter,比如我默认创建一个文件,这个文件调用的编译器应该是这个虚拟环境中的编译器,实际上并不是 当你进入jupyter新建文件之后,你会发现,并没有存在虚拟环境的名称,以及import sys,print(sys.path)打印出来的根本就不是虚拟环境中的路径,所以,必须要手动在jupyter notebook中添加自己创建的虚拟环境 添加步骤如下: 以下都在centos中执行 1. 进入虚拟环境之后,…
python3.6安装 下载python安装包,这里下载的最新的3.6.1版本 https://www.python.org/ftp/python/3.6.1/ 将安装包上传到服务器并解压 tar zxvf Python-3.6.1.tgz 安装python cd Python-3.6.1 ./configure --prefix=/usr/local/python-3.6.1 #重要,指定python的安装路径,可以自己设置. make sudo make install 修改python的软…
参考: https://blog.csdn.net/lanchunhui/article/details/72891918 https://stackoverflow.com/questions/49141525/install-jupyter-notebook-on-miniconda 打开Anaconda Prompt,输入命令: activate tensorflow Jupyter Notebook 提示错误: Traceback (most recent call last): Fil…
anaconda这个软件是真的坑,其中的jupyter notebook每次都会出错,不知道,为什么,可惜我的pycharm装tensorflow一直有错误,不然,真想卸了这个软件. 会莫名其妙闪退,之前也没有什么操作,感觉这个系列可以持续更新. 1.之前在anaconda navigator中下载了scrapy,然后就一直导入不了,再去navigator中查看时,发现没有这个包了,不论install和notinstall都没有,然后,在prompt 中pip install scrapy,发现…
1- Jupyter简介 HomePage:https://jupyter.org/ 安装指南:https://jupyter.org/install.html 官方文档:https://jupyter.org/documentation.html    https://jupyter.readthedocs.io/ Jupyter提供一个开源的基于浏览器的Notebook, 可以开发.协作.分享甚至发布数据科学结果:  可用于创建和共享代码与文档网络应用: 可在其中编写并运行代码.查看输出.可…
1. jupyter notebook 安装 创建 jupyter 目录 mkdir jupyter cd jupyter/ 创建独立的 Python3 运行环境,并激活进入该环境 virtualenv --python=python3 --no-site-packages venv source venv/bin/activate 安装 jupyter pip install jupyter 2. jupyter notebook 配置 创建 notebooks 目录 mkdir notebo…
当我们在jupyter notebook中运行时可能会遇见没有某个包的情况,如下: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-24005895b065> in <module> 2 import h5py 3 import matpl…