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
2 answers

How to setup iPython as a simplified command shell for the average user

Summary: Is it possible to setup iPython to look like a basic dos/bash command line terminal to the average user (cd, ls, mkdir, rm... etc) , and then expose a few extra proprietary commands? In Depth: I work for a video game company where the users…
Fnord
  • 5,365
  • 4
  • 31
  • 48
5
votes
1 answer

How do I recover an older traceback in python? (eg second to last)

I'm sure you found yourself in this situation, and I suspect there is no way out of this. Suppose you run some python code that raises an exception, then you want to look into it but accidentally raise another exception while doing so. If you try…
ggll
  • 963
  • 10
  • 13
5
votes
3 answers

No tab completion for IPython in Emacs textmode

When I run IPython inside emacs in textmode (i.e. inside a terminal), I don't get any tab completion. Rather than given tab completion it jumps four spaces. When I run emacs in normal GUI mode there is fine tab completion. Is there a way to fix…
Mads Jensen
  • 663
  • 2
  • 6
  • 13
5
votes
1 answer

ipython run without destroying global variables defined in the target file

I want to define some globals in some number crunching work I am doing, I am incrementally writing the script and don't want previous result to keep being loaded/recalculated. One approach is to split out mature code into a separate file and only…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
5
votes
2 answers

How to install ipdb with Anaconda on Windows?

I already have Python 2.7 installed but I wanted to try IPython so I installed IPython via Anaconda as recommended on the ipython website (although not sure what the pros/cons of doing this are). Now I would like to use ipdb debugger. I guess I…
User
  • 62,498
  • 72
  • 186
  • 247
5
votes
0 answers

increasing the memory for an ipython notebook

I am using ipython notebook and am using up too much memory. Using: ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS | tail -n 10 I see it come up to a little over 200MB before restarting the kernel. I read here that I should increase the memory…
eran
  • 14,496
  • 34
  • 98
  • 144
5
votes
1 answer

Why can't I access imported functions in Django's shell with ipython?

I have installed ipython in my virtualenv, so python manage.py shell gives my ipython. However, I can't access imports from inside function definitions: $ python manage.py shell Python 2.7.5 (default, Sep 6 2013, 09:55:21) Type "copyright",…
Wilfred Hughes
  • 29,846
  • 15
  • 139
  • 192
5
votes
1 answer

Installing NBviewer on local computer And use it to view Notebooks from local network computer

Im trying to introduce IPyhton notebook in my work. I want others colleagues in the local network to be able to see notebook Im sharing with them in their broswer or other solution. Following this question, I understood that the only solution I…
idoda
  • 6,248
  • 10
  • 39
  • 52
5
votes
1 answer

Running IPython Notebook viewer locally

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…
idoda
  • 6,248
  • 10
  • 39
  • 52
5
votes
1 answer

Control LaTeX expression color in ipython qtconsole

I'm using a dark background for ipython. I would like to have sympy expressions pretty-printed with LaTeX. Problem is the current LaTeX font is black. How can I change LaTeX font colors in the ipython terminal?
delete000
  • 184
  • 2
  • 13
5
votes
1 answer

Reading input values in ipython notebook

whenever trying to input values from keyboard using ipython notebook using the input() function like python, it gives error. EOFError Traceback (most recent call last) in () …
reshmi g
  • 141
  • 4
  • 8
5
votes
1 answer

Is there a IPython notebook api?

I would like to generate several notebooks from a python script. Is there an API to write IPython notebooks?
alex
  • 2,968
  • 3
  • 23
  • 25
5
votes
1 answer

How to resume iPython 0.13.2 session with logging

I've been using iPython (0.13.2) more frequently lately, and the logging seems like a great feature -- if I could get it to work right. Currently, I'm able to start and specify a log file either through ipython --logfile ~/path/fake.log, or even in…
n8henrie
  • 2,737
  • 3
  • 29
  • 45
5
votes
1 answer

Using IPython Parallel on the Sun Grid Engine

I'm trying to use IPython Parallel for a very common scenario, where I want to run simulations on a cluster running Sun Grid Engine, and I can't find a reliable way to do this. Here's what I am trying to do: I want to run numerical simulations…
KartMan
  • 369
  • 3
  • 19
5
votes
0 answers

How can I use %autoreload on ipython parallel engines?

Is it possible to get the magic command %autoreload to work on remote ipengines? The following works: dv.execute('a=blah.test()') dv.get('a') 5 I then change blah to return…
Eric Schmidt
  • 293
  • 3
  • 9