基于 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

https://miktex.org/download

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输出的更多相关文章

  1. anaconda+jupyter notebook 安装配置

    安装Anaconda 从清华大学开源软件镜像站选择合适自己的版本 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda ...

  2. 全真教程:Windows环境Jupyter Notebook安装、运行和工作文件夹配置

    全真教程:Windows环境Jupyter Notebook安装.运行和工作文件夹配置 @ 目录 全真教程:Windows环境Jupyter Notebook安装.运行和工作文件夹配置 一.Jupyt ...

  3. 初学者需要IPython 与 Jupyter Notebook 吗?

    ipython 是 jupyter notebook的前身并拥有ipython的全部功能         jupyter拥有 cell, markdown 整合的功能, 能同时运行代码, 而且是多组的 ...

  4. Windows下的Jupyter Notebook 安装与自定义启动(图文详解)

    不多说,直接上干货! 前期博客 Windows下的Python 3.6.1的下载与安装(适合32bits和64bits)(图文详解) 这是我自定义的Python 的安装目录 (D:\SoftWare\ ...

  5. Windows下的Jupyter Notebook 安装与自定义启动

    1.Jupyter Notebook 和 pip 为了更加方便地写 Python 代码,还需要安装 Jupyter notebook. 利用 pip 安装 Jupyter notebook. 为什么要 ...

  6. Jupyter Notebook 远程连接配置(转载)

    转载博客的Jupyter Notebook远程连接配置方法. 0 - 参考资料 https://www.jianshu.com/p/08f276d48669?utm_campaign=maleskin ...

  7. jupyter notebook 安装配置使用,+目录插件安装

    1.安装 pip3 install jupyter 2.配置 2.1. 生成一个 notebook 配置文件 jupyter notebook --generate-config /root/.jup ...

  8. Jupyter notebook安装扩展插件

    1. 安装Jupyter Notebook pip install jupyter 2. 安装Jypyter Notebook扩展包 pip install jupyter_contrib_nbext ...

  9. [Mac][Python][Jupyter Notebook]安装配置和使用

    Jupyter 项目(以前称为 IPython 项目),提供了一套使用功能强大的交互式 shell 进行科学计算的工具,实现了将代码执行与创建实时计算文档相结合. 这些 Notebook 文件可以包含 ...

随机推荐

  1. ios operationqueue

    http://www.hrchen.com/2013/06/multi-threading-programming-of-ios-part-2/

  2. Linux下安装Redis5.0.2

    1.下载redis 地址 http://download.redis.io/releases/redis-5.0.2.tar.gz 2.解压tar -zxf redis-5.0.2.tar.gz 3. ...

  3. MariaDB数据库(二)

    1. MariaDB数据类型 MariaDB数据类型可以分为数字,日期和时间以及字符串值. 使用数据类型的原则:够用就行,尽量使用范围小的,而不用大的. 1.1  常用的数据类型 整数:int,bit ...

  4. 网易技术分享:Nginx缓存引发的跨域惨案

    推荐:更多技术团队分享文章 关注:MAYOU18技术专栏 1. 前言 贵金属wap版直播间上线后,偶尔有用户反馈,在进入wap直播间的时候,出现空白页面,但是重新刷新又可以正常显示了.我们曾一度认为是 ...

  5. String字符串去掉双引号

    public static String stringReplace(String str) { //去掉" "号 String str= str.replace("\& ...

  6. xtu summer individual 4 C - Dancing Lessons

    Dancing Lessons Time Limit: 5000ms Memory Limit: 262144KB This problem will be judged on CodeForces. ...

  7. Python 双向队列Deque、单向队列Queue 模块使用详解

    Python 双向队列Deque 模块使用详解 创建双向队列Deque序列 双向队列Deque提供了类似list的操作方法: #!/usr/bin/python3 import collections ...

  8. 东软Unieap平台

    东软Unieap平台 开发环境与技术栈 操作系统 WINDOS7 数据库 Oracle 开发语言 JAVA 版本控制工具 git 框架 Unieap是基于现在主流的JAVA开发框架(Hibernate ...

  9. [luoguP2577] [ZJOI2005]午餐(DP)

    传送门 显然吃饭时间越长的人排在前面越好,所以先排序. f[i][j]表示前i个人,A队的打饭时间为j的最优解,每个人只有两种选择,去A队或是去B队. #include <cstdio> ...

  10. Washing Clothes(poj 3211)

    大体题意:有n件衣服,m种颜色,某人和他的女炮一起洗衣服,必须一种颜色洗完,才能洗另一种颜色,每件衣服都有时间,那个人洗都一样,问最少用时. poj万恶的C++和G++,害得我CE了三次 /* 背包啊 ...