Questions tagged [ipython]

IPython is a feature-rich interactive shell for Python, and provides a kernel for frontends such as IPython Notebook and Jupyter Notebook.

IPython provides a rich architecture for interactive computing with . It includes:


Version updates:

The IPython 3.x release series is the last where IPython is released as one big package. Starting with IPython 4.0, the parts which work for any language are called , while the parts specific to executing Python code remain as IPython.

IPython 5.0 is the last major release to support Python 2.x.


Links:

7180 questions
5
votes
3 answers

How do I disable IPython when opening a Django shell

If it is a multi-user environment and uninstall IPython is not an option, how would you go about launching a Django shell without IPython.
Dax
  • 369
  • 2
  • 7
5
votes
1 answer

Converting markdown text to ipython notebook

I have some (over 100) notes take down as mark down text file (with .md extension). Recently I discovered ipython notebook. Barring no Vim keybinding, it looks perfect. So would like to convert all those .md files into .ipynb files. Is there such a…
lang2
  • 11,433
  • 18
  • 83
  • 133
5
votes
1 answer

How to get jupyter notebook kernel state?

I want to be able to detect from outside a notebook server if the kernel is busy or actively running some cell. Is there some way for me to print this state as a command line call or have it returned as the response to a http request.
Hamzeh Alsalhi
  • 403
  • 1
  • 4
  • 10
5
votes
2 answers

Count individual words in Pandas data frame

I'm trying to count the individual words in a column of my data frame. It looks like this. In reality the texts are Tweets. text this is some text that I want to count That's all I wan't It is unicode text So what I found from other stackoverflow…
Lam
  • 681
  • 1
  • 9
  • 17
5
votes
1 answer

Plotting data from generator in Python

Is there any plotting option in Python (IPython-Jupyter notebook) which accepts generators? AFAIK matplotlib doesn't support that. The only option I discovered is plot.ly with their Streaming API, but I would prefer not to use online solution due to…
tomasbedrich
  • 1,350
  • 18
  • 26
5
votes
2 answers

pycharm python console autocompletion

if I start ipython in a terminal, when I type 'im' and press TAB, the terminal will auto-complete it with 'import', but when I click python console button in the bottom of pycharm IDE, when the ipython environment shows, type 'im', press TAB, it…
PhilChang
  • 2,591
  • 1
  • 16
  • 18
5
votes
1 answer

Animate a ScatterPlot with PyPlot

I'm trying to plot the movement of particles with pyplot. The problem is that I can't figure out how to create the animation. Here is the notebook : http://nbviewer.ipython.org/gist/lhk/949c7bf7007445033fd9 Apparently the update function doesn't…
lhk
  • 27,458
  • 30
  • 122
  • 201
5
votes
1 answer

Ipython parallel scripts running and return the local variables

For instance, I run 4 scripts sequentially: %run -i script1.py %run -i script2.py %run -i script3.py %run -i script4.py The time of execution of each quite long. Is there any way in iPython notebook to run the scripts in parallel and return the…
5
votes
1 answer

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

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…
Apogentus
  • 6,371
  • 6
  • 32
  • 33
5
votes
1 answer

Custom Display Output for List of ObjA

We can register a custom type for say numpy.polynomial.polynomial with ipython display engine as follow ip = get_ipython() foramtter = ip.display_formatter.formatters['text/latex'] foramtter.for_type_by_name('numpy.polynomial.polynomial', …
iCode
  • 4,308
  • 10
  • 44
  • 77
5
votes
2 answers

Have IPython run using Python 3 and not Python 2

I have both Python 2 and Python 3 installed, but when I run IPython using ipython from terminal it launches Python 2. How do I get IPython to run Python 3 instead? Within the IPython reference it says you just need to use the command ipython3 from…
dsaxton
  • 995
  • 2
  • 10
  • 23
5
votes
2 answers

Use ein (emacs ipython notebook) on remote server

I have installed and configured ein (emacs ipython notebook) to work on my local linux/mac machines. However, I would like to use ein to open ipython notebooks on a remote server and run them from within ein. Is this possible and if so could someone…
rambalachandran
  • 2,091
  • 2
  • 19
  • 34
5
votes
1 answer

"ValueError: Unrecognized marker style -d" when looping over markers

I'm trying to code pyplot plot that allows different marker styles. The plots are generated in a loop. The markers are picked from a list. For demonstration purposes I also included a colour list. The versions are Python 2.7.9, IPython 3.0.0,…
K.Sy
  • 90
  • 1
  • 3
  • 10
5
votes
3 answers

TypeError: boxplot() got an unexpected keyword argument 'labels'

I'm using ipython 3.2.0, and I'm trying to use boxplot. Online documentation and examples suggest that a keyword "labels" should exist, as also stated in this SO post, but I get the following error: TypeError: boxplot() got an unexpected keyword…
MRule
  • 529
  • 1
  • 6
  • 18
5
votes
4 answers

LookupError: from nltk.book import*

In iPython console I typed from nltk.book import and I got several LookupErrors. Below shows the code I got. *** Introductory Examples for the NLTK Book *** Loading text1, ..., text9 and sent1, ..., sent9 Type the name of the text or sentence to…
Dakshila Kamalsooriya
  • 1,391
  • 4
  • 17
  • 36