IPython与Jupyter notebook 安装与配置,插件扩展,主题,PDF输出
基于 python2.7.13 32-bit版本安装
1、安装pyreadline
https://pypi.python.org/pypi/pyreadline
下载对应的32位版本
安装Microsoft Visual C++ Compiler for Python 2.7 并安装
http://www.microsoft.com/en-us/download/details.aspx?id=44266
2、用pip安装iPython
进入目录 c:\Python27\Scripts>
输入命令: pip install ipython
2.1 或者从git安装iPython
https://github.com/ipython/ipython.git
把ipython.git pull 下来,checkout 到5.1分支(适用于Python2.7)。
使用cmd进入ipython目录,输入 python setup.py install 即可
检查iPython是否安装成功
命令行输入 ipython 即可进入ipython
命令行输入 ipython --pylab
ipython会自动importSciPy,NumPy和matplotlib包,也就是不需要在命令输入 from numpy import * 等命令
3、安装notebook
pip install jupyter
安装成功后,命令行输入:
jupyter notebook
http://localhost:8888/ 检查notebook服务器是否已经启动
4、查看已安装的包
pip list
5、安装扩展
https://github.com/ipython-contrib/jupyter_contrib_nbextensions
安装命令:
pip install jupyter_contrib_nbextensions
(或者用命令:pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master)
jupyter contrib nbextension install --user
运行Jupyter Notebook, 在打开的Notebook界面里, 你会发现多了一个Nbextensions,勾选Table of Contents (有的版本是toc2). 然后创建或者打开一个Jupter Notebook
如果是anaconda,可以使用命令:
conda install -c conda-forge jupyter_contrib_nbextensions
5、安装Jupyter themes
https://github.com/dunovank/jupyter-themes
安装命令:
pip install jupyterthemes
安装完后,直接cmd下,使用 jt -l 查看所有 themes,使用 jt -t grade3 -T -N 启用不同的themes。
重启jupyter 生效
6、输出PDF
a、安装pandoc
https://github.com/jgm/pandoc/releases/tag/1.19.2.1
b、安装MiKTeX
c、安装 GNU make for windows
http://gnuwin32.sourceforge.net/packages/make.htm
d、把上面安装好的软件路径,全部添加到环境变量里面
e、PDF支持中文
C:\Python27\Lib\site-packages\nbconvert\templates\latex\article.tplx
把 \documentclass[11pt]{article} 修改为 \documentclass[11pt]{ctexart} 即可!!!
Pandoc 支持中文
pandoc infile.md -o outfile.pdf --latex-engine=xelatex -V mainfont="SimSun"
IPython与Jupyter notebook 安装与配置,插件扩展,主题,PDF输出的更多相关文章
- anaconda+jupyter notebook 安装配置
安装Anaconda 从清华大学开源软件镜像站选择合适自己的版本 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda ...
- 全真教程:Windows环境Jupyter Notebook安装、运行和工作文件夹配置
全真教程:Windows环境Jupyter Notebook安装.运行和工作文件夹配置 @ 目录 全真教程:Windows环境Jupyter Notebook安装.运行和工作文件夹配置 一.Jupyt ...
- 初学者需要IPython 与 Jupyter Notebook 吗?
ipython 是 jupyter notebook的前身并拥有ipython的全部功能 jupyter拥有 cell, markdown 整合的功能, 能同时运行代码, 而且是多组的 ...
- Windows下的Jupyter Notebook 安装与自定义启动(图文详解)
不多说,直接上干货! 前期博客 Windows下的Python 3.6.1的下载与安装(适合32bits和64bits)(图文详解) 这是我自定义的Python 的安装目录 (D:\SoftWare\ ...
- Windows下的Jupyter Notebook 安装与自定义启动
1.Jupyter Notebook 和 pip 为了更加方便地写 Python 代码,还需要安装 Jupyter notebook. 利用 pip 安装 Jupyter notebook. 为什么要 ...
- Jupyter Notebook 远程连接配置(转载)
转载博客的Jupyter Notebook远程连接配置方法. 0 - 参考资料 https://www.jianshu.com/p/08f276d48669?utm_campaign=maleskin ...
- jupyter notebook 安装配置使用,+目录插件安装
1.安装 pip3 install jupyter 2.配置 2.1. 生成一个 notebook 配置文件 jupyter notebook --generate-config /root/.jup ...
- Jupyter notebook安装扩展插件
1. 安装Jupyter Notebook pip install jupyter 2. 安装Jypyter Notebook扩展包 pip install jupyter_contrib_nbext ...
- [Mac][Python][Jupyter Notebook]安装配置和使用
Jupyter 项目(以前称为 IPython 项目),提供了一套使用功能强大的交互式 shell 进行科学计算的工具,实现了将代码执行与创建实时计算文档相结合. 这些 Notebook 文件可以包含 ...
随机推荐
- 题解 洛谷P3622/BZOJ1151【[APIO2007]动物园】
这一道题,我也是搞了很久才搞懂的(也就两个多小时). 感谢Rayment大佬的题解! 我们进入正题. 对于一个笼子里的动物,我们可以选择撤走或不撤走,可以用0和1来表示,很容易就想到二进制,想到状压d ...
- 哈理工(HUST)第八届程序设计竞赛--小乐乐的组合数
这道题目是一道数学题,我们可以假设n为7,m为14. 这样的话我们就可以很清晰地看到7和7可以拼接在一起,这是一对,然后是7和14拼接在一起,第二对. 我们可以直接让n/7,m/7,这样就是1*2,就 ...
- ruby on rails全局布局,局部视图,局部布局
参考链接:http://guides.ruby-china.org/layouts_and_rendering.html#%E9%9D%99%E6%80%81%E8%B5%84%E6%BA%90%E6 ...
- Python之阻塞IO模型与非阻塞IO模型
Python之阻塞IO模型与非阻塞IO模型 IO模型 1 阻塞IO: 全程阻塞 2 非阻塞IO: 发送多次系统调用: 优点:wait for data时无阻塞 缺点:1 系统调用太多 2 数据不是实时 ...
- LeetCode(101)Symmetric Tree
题目 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). Fo ...
- 省市区名称code
https://blog.csdn.net/hichinamobile/article/details/51725090 --省 create table t_base_provinces( id ) ...
- POJ1703-Find them, Catch them 并查集构造
Find them, Catch them 好久没有做并查集的题,竟然快把并查集忘完了. 题意:大致是有两个监狱,n个 ...
- [Vijos1512] SuperBrother打鼹鼠 (二维树状数组)
传送门 直接搞就行. 注意下表re从零开始,而树状数组搞不了0,所以统一增加一个偏移量1. (话说数据随机是什么鬼?) # include <iostream> # include < ...
- 【dfs+理解题意+构造】【待重做】codeforces E. Ice cream coloring
http://codeforces.com/contest/805/problem/E [题意] 染色数是很好确定,最少染色数是max(si)(最小为1,即使所有的si都为0,这样是单节点树形成的森林 ...
- P1979 [NOIP]华容道
[问题描述] 小 B 最近迷上了华容道,可是他总是要花很长的时间才能完成一次.于是,他想到用编程来完成华容道:给定一种局面, 华容道是否根本就无法完成,如果能完成, 最少需要多少时间. 小 B 玩的华 ...