ipython

500 server error using IPython notebook on Windows

两盒软妹~` 提交于 2020-01-02 05:47:08
问题 I've just done a fresh install of IPython notebook on Windows 7 Professional 64 bit. The steps I took were: Install Python 3.4.1 from http://python.org > pip install ipython[notebook] > pip install pywin numpy pygments nodeenv I can open a notebook fine. However, when I select File > Print Preview or File > Download as HTML I get a 500 server error. The stack trace is: 2014-08-07 09:44:25.431 [NotebookApp] Loaded template full.tpl C:\Python34\lib\site-packages\IPython\nbconvert\filters

Clear memory allocated by plotting in IPython

我的梦境 提交于 2020-01-02 05:42:05
问题 I'm plotting some large plots in IPython QtConsole (and Notebook). These take up a lot of memory, but once they are plotted I don't need them any more and they can go. How can I free up memory? None of the following works: close() clf() cla() %reset The only thing that frees the memory is restarting the kernel , which I don't always want to do (say I worked through a long process to get to a specific point) [To be precise, %reset does free up some memory, but not as much as restarting the

Running IPython Notebook viewer locally

南楼画角 提交于 2020-01-02 04:55:26
问题 Im trying to introduce IPython notebook in my work. One of the ways I want to do that is by sharing my own work as notebooks with my colleagues so they would be able to see how easy it is to create sophisticated reports and share them. I obviously can't use Notebook viewer since most of our work is confidential. I'm trying to set up notebook viewer locally. I read this question and followed the instructions there, but now that nbconvert is part of IPython the instructions are no longer valid.

pyspark in Ipython notebook raises Py4JNetworkError

断了今生、忘了曾经 提交于 2020-01-02 04:54:06
问题 I was using IPython notebook to run PySpark with just adding the following to the notebook: import os os.chdir('../data_files') import sys import pandas as pd %pylab inline from IPython.display import Image os.environ['SPARK_HOME']="spark-1.3.1-bin-hadoop2.6" sys.path.append( os.path.join(os.environ['SPARK_HOME'], 'python') ) sys.path.append( os.path.join(os.environ['SPARK_HOME'], 'bin') ) sys.path.append( os.path.join(os.environ['SPARK_HOME'], 'python/lib/py4j-0.8.2.1-src.zip') ) from

How to add automatically extension to Jupyter (ipython) notebook?

我们两清 提交于 2020-01-02 04:53:08
问题 I have installed extension 'calico-document-tools' and I can load it from within Jupyter notebook using: %%javascript IPython.load_extensions('calico-document-tools'); How can I load it automatically for each opened notebook? I tried adding IPython.load_extensions('calico-document-tools'); or IPython.load_extensions('C:/Users/<username>/.ipython/nbextensions/calico-document-tools'); to C:\Users\<username>\.ipython\profile_default\static\custom\custom.js but it didn't work (extension should

IPython support on Emacs 24.x

会有一股神秘感。 提交于 2020-01-02 03:10:52
问题 I am confused about the integration of IPython with Emacs. Starting with Emacs 24, Emacs ships with it's own python.el . Does this file have support for IPython or just for Python? Also, the Emacswiki talks about a file called IPython.el (although the link it provides: http://ipython.scipy.org/dist/ipython.el returns a 404 Error). Is this file compatible with Emacs 24' python.el or does it only work with python-model.el ? 回答1: The new python.el (shipped with Emacs version 24.3) does support

How to recover a notebook emptied after kernel crash?

£可爱£侵袭症+ 提交于 2020-01-02 01:20:36
问题 While working in an ipython notebook, eventually I had to Ctrl+C as the kernel seemed to be halted. The console gave me a message like: [NotebookApp] Kernel shutdown: 5faa86bf-........f6 [NotebookApp] Kernel shutdown: 71........22 [NotebookApp] .... (I had three notebooks running) But something went wrong and my notebook file.ipynb is empty (actually only the one I was actively using). Is there a way to recover that file before it was deleted? Some place where automatically-saved o manually

Physics bra-ket symbols in IPython

倖福魔咒の 提交于 2020-01-01 17:23:11
问题 I am trying to have the ket symbol which is usually written in latex as \ket{\psi} . However, this doesn't work when written within the $$ ... $$ . This also doesn't work when written using IPython.display . 回答1: $ latex ** \documentclass{article}\usepackage{amsmath}\begin{document} ... chatter chatter ... * \show\ket > \ket=undefined. So your \ket macro is coming from some package or other which I don't know what it is. This doesn't explain why it doesn't work in $$ ... $$ -- you have to

Physics bra-ket symbols in IPython

谁说胖子不能爱 提交于 2020-01-01 17:21:08
问题 I am trying to have the ket symbol which is usually written in latex as \ket{\psi} . However, this doesn't work when written within the $$ ... $$ . This also doesn't work when written using IPython.display . 回答1: $ latex ** \documentclass{article}\usepackage{amsmath}\begin{document} ... chatter chatter ... * \show\ket > \ket=undefined. So your \ket macro is coming from some package or other which I don't know what it is. This doesn't explain why it doesn't work in $$ ... $$ -- you have to

Physics bra-ket symbols in IPython

那年仲夏 提交于 2020-01-01 17:21:08
问题 I am trying to have the ket symbol which is usually written in latex as \ket{\psi} . However, this doesn't work when written within the $$ ... $$ . This also doesn't work when written using IPython.display . 回答1: $ latex ** \documentclass{article}\usepackage{amsmath}\begin{document} ... chatter chatter ... * \show\ket > \ket=undefined. So your \ket macro is coming from some package or other which I don't know what it is. This doesn't explain why it doesn't work in $$ ... $$ -- you have to