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
1 answer

Save by cell and not by line #: IPython %save magic: Is there a way?

I'm creating a Django tutorial in an IPython Notebook and I want to use the %save magic to save .py files to create / edit / advance a website as the tutorial progresses. The problem is the %save magic works by specifying which lines to save.…
agconti
  • 17,780
  • 15
  • 80
  • 114
5
votes
1 answer

Avoid antialising of R plots in iPython Notebook

In iPython Notebook (with rmagic extension) the plots don't look crisp. They are antialised. I have tried different combinations of width and height for example %R -w 600 -h 400 plot(1) without success. How can I make the R plots look better, as the…
Victor
  • 23,172
  • 30
  • 86
  • 125
5
votes
0 answers

Running IPython magics in ipdb

Can I use IPython magics such as %paste and %cd in ipdb?. Is there any way to have ipdb interpret these magics in the command line?
prathamesh
  • 511
  • 6
  • 8
5
votes
1 answer

Embedding an IPython shell in a Gtk+ program

I'd like to embed an IPython shell inside a graphical Gtk+ program. The traditional IPython embedding API is geared towards console usage. It should be possible to export program variables to the shell so that the user can use the shell to interact…
daf
  • 5,085
  • 4
  • 31
  • 34
5
votes
3 answers

How do I embed IPython with working generator expressions?

Certain list comprehensions don't work properly when I embed IPython 0.10 as per the instructions. What's going on with my global namespace? $ python >>> import IPython.Shell >>> IPython.Shell.IPShellEmbed()() In [1]: def bar(): pass ...: In…
joeforker
  • 40,459
  • 37
  • 151
  • 246
5
votes
1 answer

Getting NameError with Django 1.5 and IPython

I'm running Django 1.5.1, Python 2.7.2, and IPython 0.13.2. If I do "python ./manage.py shell" from within my Django project directory, I get the following error: from django import forms class CommentForm(forms.Form): name =…
Jim
  • 13,430
  • 26
  • 104
  • 155
5
votes
2 answers

IPython in unbuffered mode

Is there a way to run IPython in unbuffered mode? The same way as python -u gives unbuffered IO for the standard python shell
pufferfish
  • 16,651
  • 15
  • 56
  • 65
5
votes
1 answer

"Save as" in IPython notebook

I want to save a file with a different name, and keep the file with the old name (ie, no renaming) in Ipython Notebook. Is there a standard "save as" feature?
N. McA.
  • 4,796
  • 4
  • 35
  • 60
5
votes
2 answers

using rpy2 with IPython notebooks?

Is it possible to use rpy2 (calling ggplot2) with IPython notebooks, and then save them (and share on NBViewer like other notebooks http://nbviewer.ipython.org/)? Is there any challenge in having the rpy2 ggplots appear in the notebook and/or…
user248237
5
votes
6 answers

How do I upgrade kernmagic to fix this ipython error?

I recently upgraded my Enthought Python distribution with sudo easy_install -U ipython However, when I start up ipython with the ipython command, I get an error: David-Faux-MacBook-Air:core davidfaux$ ipython Python 2.7.2 |EPD 7.2-2 (32-bit)|…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
5
votes
1 answer

QApplication instance causing python shell to be sluggish

My IPython shell becomes sluggish after I instantiate a QApplication object. For example, even from a fresh start, the following code will make my shell sluggish enough where I have to restart it. from PyQt4 import QtGui app =…
bdiamante
  • 15,980
  • 6
  • 40
  • 46
5
votes
1 answer

RMagic, IPython and Summary Information

Following the example here http://www.randalolson.com/2013/01/14/filling-in-pythons-gaps-in-statistics-packages-with-rmagic/ I tried the same on a different data set found here, in an IPython…
BBSysDyn
  • 4,389
  • 8
  • 48
  • 63
5
votes
1 answer

Emacs: How to configure Emacs for iPython, pylint and autocompletion support?

I am an intermediate Python programmer that uses Eclipse with the Pydev plugin. Now I plan to switch to Emacs to speed up coding. I am struggling with the Emacs configuration and want to add support for iPython, pylint and Python auto-completion. I…
Jon
  • 11,356
  • 5
  • 40
  • 74
5
votes
1 answer

In Django's shell, how can I load ipython magic functions automatically?

I want to make the following ipython commands permanent when using django shell: %load_ext autoreload %autoreload 2 Unfortunately, Django doesn't seem to use my global ipython config, so putting them in my default_profile doesn't seem to work. Is…
Ben Davis
  • 13,112
  • 10
  • 50
  • 65
5
votes
3 answers

Where to use ipython and where is ipthon shell?

I've installed ipython, but I don't know how to use it. Where could I find ipython shell?
f.ashouri
  • 5,409
  • 13
  • 44
  • 52