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

Using Sacred Module with iPython

I am trying to set up sacred for Python and I am going through the tutorial. I was able to set up sacred using pip install sacred with no issues. I am having trouble running the basic code: from sacred import Experiment ex =…
RDizzl3
  • 318
  • 3
  • 13
5
votes
0 answers

Why is there no output when I click 'run' in ipython notebook?

Intermittently, I'll be running a notebook and clicking 'Run' will suddenly appear to stop doing anything. The code cells produce no print output, but just bounce me into the next cell. Here is what happens: The only clue in the kernel is this…
Richard
  • 62,943
  • 126
  • 334
  • 542
5
votes
1 answer

Pass a variable in IPython / Jupyter to a block of html (%%html)

I would like to pass a simple variable to an html cell on Jupyter: cell 1: a=5 cell 2: %%html This will return an error: Javascript error…
thecheech
  • 2,041
  • 3
  • 18
  • 25
5
votes
5 answers

conda error: could not found url

recently i installed the anaconda but when i'm open it i got this error: Error fetching package index Could not find URL: https://pypi.python.org/pypi/osx-64/ also when i'm using the commandconda install ... i got Using Anaconda Cloud api site…
Reza
  • 728
  • 1
  • 10
  • 28
5
votes
1 answer

IPython and Inline Matplotlib Figure Sizes

In my current iPython, matplotlib plots are being displayed inline. I wanted a way to display images with specific pixel sizes, as I usually only work with pixels and I don't print anything out. My screen PPI is 208, so I ran these 2 pieces of…
CMCDragonkai
  • 6,222
  • 12
  • 56
  • 98
5
votes
1 answer

Where does `custom.js` exist or how to create one for Jupyter 4.1.1?

I could not find custom.js for Jupyter (notebook) installed under pyenv+virtualenv with Python3.5.1. Some say that custom.js locates at ~/.jupyter/custom/custom.js but I do not have one (by the way, I could create jupyter_notebook_config.py via…
keisuke
  • 2,123
  • 4
  • 20
  • 31
5
votes
1 answer

I am using jupyter notebook, ipython 3 on windows. Whenever i am starting my python 3, i get the "Kernel Dead" message

Dead kernel The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until…
dharinir
  • 63
  • 1
  • 4
5
votes
2 answers

Does ipython notebook 'run all cells' execute simultaneously or in sequence?

I have a code that is applying changes to a dataset and then the next cell picks this up to continue with an other set of changes. This is done for my own readability and troubleshooting in datamunging. I think I finished the code and want to apply…
Peter
  • 441
  • 1
  • 6
  • 21
5
votes
0 answers

Make Jupyter Notebook accessible by multiple users on server

I set up a Jupyter server on the server in my lab. I would like to make the notebooks accessible to multiple users via their browser, and allow them to edit the notebook. I followed the instruction on Jupyter website. But my colleagues have trouble…
Void
  • 153
  • 4
  • 12
5
votes
1 answer

How to place custom Jupyter kernels inside virtual environment?

I have a custom Jupyter kernel which runs IPython using a custom IPython profile which uses a matplotlib stylesheet. I know to run this successfully normally I would put: The matplotlib stylesheet in ~/.config/matplotlib/stylelib/ The IPython…
C. dBD
  • 53
  • 4
5
votes
1 answer

How to check whether an IPython notebook is still running?

When doing data mining with an IPython notebook, often the calculation takes a long time. You wait for the In [*]: star to output something. After several hours, I finally notice that the kernel is unresponsive. How exactly do I know whether the…
ShanZhengYang
  • 16,511
  • 49
  • 132
  • 234
5
votes
1 answer

Python get raises HTTPError 400 Client Error, but after manually accessing URL, get works temporarily

When I run this code in iPython (Python 2.7): from requests import get _get = get('http://stats.nba.com/stats/playergamelog', params={'PlayerID': 203083, 'Season':'2015-16', 'SeasonType':'Regular Season'}) print…
andingo
  • 51
  • 1
  • 1
  • 3
5
votes
4 answers

SQL iPython Magic Extension won't load

Just installed the iPython-SQL extenson, but when I run %load_ext sql I get an error "The sql module is not an IPython extension." I installed it via pip by pip install ipython-sql and when that didn't seem to work, even by downloading the file…
user2762934
  • 2,332
  • 10
  • 33
  • 39
5
votes
1 answer

Nbconvertapp doesn't exist

I'm on Ubuntu, I'm using Python 2.7.6 and Ipython 4.0.3. I'm trying to convert a ipynb file to a pdf file. It gives the following error: ipython nbconvert --to pdf mine.ipynb Traceback (most recent call last): File "/usr/bin/ipython", line 6, in…
Duygu
  • 106
  • 1
  • 5
5
votes
1 answer

How do I suppress the IPython startup message?

When debugging, I often drop into an IPython shell for interactive code testing. However this also causes a large info dump of the python version, date and help instructions to stdout. How can I suppress this information so it doesn't obscure the…
eadsjr
  • 681
  • 5
  • 20