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

Issue plotting vertex labels using igraph in ipython

I usually work in a IPython notebook, which I open on Windows with the command ipython qtconsole --matplotlib inline I'm currently using IPython QtConsole 3.0.0, Python 2.7.9 and IPython 3.0.0. I want to plot a graph, together with its labels from…
alezok
  • 151
  • 4
5
votes
1 answer

"tput: Unknown terminal 'emacs'" messages when using PyCharm / iPython console on Windows

I am using PyCharm with iPython on Windows. The only Python I have installed on the box is the latest Anaconda distribution, Python 3.4 flavor. Very often, while using the console, I get numerous instances of the following warning message: tput:…
sparc_spread
  • 10,643
  • 11
  • 45
  • 59
5
votes
1 answer

turtle width and pensize Difference?

i changed these attribute of turtle and they seem to do the same thing which is make the line drawn bigger or smaller, what's the difference between the two attributes? they seem to be the same thing
kabutoex
  • 61
  • 1
  • 1
  • 6
5
votes
1 answer

Printing 2 Python Pandas DataFrame in HTML Tables in iPython Notebook

Question: How can you print 2 DataFrame tables together from 1 iPython Notebook row, such that both tables are displayed in the pretty table format? The following prints just the second one, and print df.head() does not produce a pretty table. df =…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
5
votes
1 answer

Saving plot from ipython notebook produces a cut image

I am plotting a plot with 2 ylabels using ipython notebook and the image looks good when visualized inside the notebook. Here is how I do it: import matplotlib.pyplot as plt fig, ax1 = plt.subplots() plt.title('TITLE') plt.xlabel('X') plt.plot(x,…
Alberto
  • 341
  • 1
  • 3
  • 13
5
votes
1 answer

Run the same IPython notebook code on two different data files, and compare

Is there a good way to modularize and re-use code in IPython Notebook (Jupyter) when doing the same analysis on two different sets of data? For example, I have a notebook with a lot of cells doing analysis on a data file. I have another data file of…
Andrew Mao
  • 35,740
  • 23
  • 143
  • 224
5
votes
2 answers

Pycharm interactive console does not work

I am new to both python and Pycharm. Thus, please do not hesitate to point out where I did wrong and how I can fix the problem. The problem is that IPython can not import the functions I want to execute as usual. Even after the python file runs, I…
Jason
  • 73
  • 1
  • 1
  • 7
5
votes
1 answer

How to use IPython magic commands within the Spyder editor?

I'm using Spyder as my IDE, and I'd like to know if I can use IPython magic (e.g. %reset) within the text editor and have it interpreted correctly within my IPython client. Currently I get syntax errors (it's not wrong) but I was wondering if there…
trianta2
  • 3,952
  • 5
  • 36
  • 52
5
votes
1 answer

how does IPython magics work

ipthon-sql is an extension of ipython, I first install it by pip install ipython-sql the project is here: https://github.com/catherinedevlin/ipython-sql and my problem is: when I enter %load_ext sql and press SHIFT+ENTER, what's the detailed…
taotao.li
  • 1,050
  • 2
  • 11
  • 23
5
votes
2 answers

IPython/Jupyter Input Prevents Plot Showing

I'm having trouble with a plot because an input prevents the plot to be displayed. I have a large code which manipulate some data and plot it, then ask some questions about the plot (with which then makes another plot). Im running the code from…
Isak Baizley
  • 1,722
  • 4
  • 16
  • 21
5
votes
4 answers

IPython/Jupyter notebook 3 - hide headers by default

Before IPython notebook version 3.0 the notebook headers could be hidden by default by adding this to ".ipython\profile_default\static\custom\custom.js" (on Windows): $([IPython.events]).on("app_initialized.NotebookApp", function () { …
Tobias Hotzenplotz
  • 1,177
  • 1
  • 11
  • 15
5
votes
1 answer

Why do I get the empty tuple if I type / in iPython?

Open up iPython and type this: / Hit enter and wonder about the result: () You cannot assign it, my guess it has something to do with the shell functionality. Edit: You can assign it with: p = Out[xx] But not directly: p = / will…
Edgar Klerks
  • 1,517
  • 11
  • 21
5
votes
1 answer

Create language kernels for IPython for a language without ZeroMQ bindings

There are some interesting descriptions of writing language kernels to allow a language previously unsupported by IPython to be executed from IPython. In all cases, the kernel creation step involves using the target language's ZeroMQ bindings (since…
ely
  • 74,674
  • 34
  • 147
  • 228
5
votes
2 answers

IPython: how to automagically load npz file and assign values to variables?

I'm new to Python and I'm eagerly migrating from MATLAB to IPython as my preferred language for data analysis at the lab. In MATLAB, after a session of data crunching, I would do >>> save('myresults.mat','x','y','z'); and save the results of the…
user2734434
  • 2,661
  • 2
  • 14
  • 16
5
votes
0 answers

Display results form python execution in markdown cell of a ipython notebook

I have SymPy code that generate complex expressions that I want to display in a Markdown cell to discuss the result. Generally, I do print sympy.latex(an_expression_i_want_to_display) in a code cell and I copy-and-paste the result in my Markdown…
Christian O'Reilly
  • 1,864
  • 3
  • 18
  • 33