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

How can I fix "ImportError: no module named shell" error for IPython

I've seen a number of people recommend that I use the following snippet to embed an IPython shell or drop to an IPython shell from e.g. a django view. from IPython.Shell import IPShellEmbed ipython = IPShellEmbed() ipython() But when I do this, I…
Caspar
  • 7,039
  • 4
  • 29
  • 41
5
votes
1 answer

IPython solarized?

I'm running Spyder and with Pschelo's spyder solarized theme, but the console, including IPython console, is not affected by the IDE theme. How can I tweak the default color theme in IPython so that it uses solarized colours?
dmvianna
  • 15,088
  • 18
  • 77
  • 106
5
votes
4 answers

Commenting multiple lines in an ipython cell

Is there a way to comment multiple lines of code in an ipython cell in one go?
UNagaswamy
  • 2,068
  • 3
  • 30
  • 35
5
votes
1 answer

IPython Parallel Computing Namespace Issues

I've been reading and re-reading the IPython documentation/tutorial, and I can't figure out the issue with this particular piece of code. It seems to be that the function dimensionless_run is not visible to the namespace delivered to each of the…
Michael K
  • 2,196
  • 6
  • 34
  • 52
5
votes
1 answer

using scipy.signal.find_peaks_cwt

I'm trying to get a peak of a noisy frequency spectrum, and it seemed like scipy.signal.find_peaks_cwt (documented at scipy.org) was a good solution. However, even after updating scipy, python (and ipython) can't find the function: >>> from…
mszep
  • 410
  • 3
  • 12
5
votes
2 answers

ipython emacs IndentationError

Really annoying problem in ipython prompt in emacs: In [128]: if 1==1: .....: print "yes" .....: else: .....: print "no" .....: IndentationError: unindent does not match any outer indentation level It looks perfectly…
sudo
  • 647
  • 2
  • 7
  • 19
5
votes
2 answers

How does `cat` work in ipython interactive shell?

I noticed that using cat on a file works in ipython. It doesn't appear to be listed as a magic command... so I am confused how/why it works. What lets cat work in ipython interactive shell?
Trevor Boyd Smith
  • 18,164
  • 32
  • 127
  • 177
5
votes
4 answers

set ipython as interpreter for pydev

I would like to use IPython as interpreter in Pydev eclipse plugin. I have IPython 0.10 and Pydev 2.5.0, running on linux (opensuse). When I go into Pydev preferences and try to set the IPython path (as explained on this page :…
clement
  • 51
  • 1
  • 3
5
votes
2 answers

How to close the doc reading part of the IPython notebook?

In an IPython notebook, when you look at some docs with ? or help(), a split frame is opened at the bottom of the screen where the documentation shows up. While I find this useful as a guide for continuing to play with some Python code, I would like…
K.-Michael Aye
  • 5,465
  • 6
  • 44
  • 56
4
votes
1 answer

query about installing Python package

I have installed ipython on my Ubuntu and then I have installed mechanize on the same. I can able to do import mechanize from command prompt. But when I say import mechanize from ipython, it says as no module named mechanize.
self
  • 2,634
  • 3
  • 16
  • 15
4
votes
1 answer

how to embed ipython 0.12 so that it inherits namespace of the caller?

EDIT I isolated a real minimal example which does not work (it is a part of more complex code); the culprit is the inputhook part after all: def foo(): exec 'a=123' in globals() from IPython.frontend.terminal.embed import…
eudoxos
  • 18,545
  • 10
  • 61
  • 110
4
votes
1 answer

Reading the stdout from slave nodes with ipcluster

I've set up a cluster using ipcluster start --n=8 then accessed it using from IPython.parallel import Client c=Client() dview=c[:] e=[i for i in c] I'm running processes on the slave nodes (e[0]-e[7]) which take a lot of time and I'd like them to…
4
votes
2 answers

Ctrl+D equivalent in IPython and bpython?

In the standard Python interactive shell, I can press Ctrl+D to close stdin and it shows the output: $ python Python 2.7.2 (default, Mar 7 2012, 21:18:58) [GCC 4.5.3] on linux2 Type "help", "copyright", "credits" or "license" for more…
quanta
  • 3,960
  • 4
  • 40
  • 75
4
votes
2 answers

Ipython in pydev interactive debugging console(eclipse)

I have ipython working in pydev when using the normal interactive console, however when entering debug mode the console reverts to the standard pydev console. If I close this console and re-open it, ipython returns and I can use it as normal. Am I…
Eric Schmidt
  • 293
  • 3
  • 9
4
votes
2 answers

What does result of 'list(contour)' denote?

I was just trying to understand what a contour means and what is the values stored when we create a contour using cv.FindContours function in OpenCV ( I am using OpenCV 2.3.1 and Python). I used following simple image for test: After contour…
Abid Rahman K
  • 51,886
  • 31
  • 146
  • 157
1 2 3
99
100