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

How do I automatically enable logging *with timestamps* in iPython 0.12?

I'm using iPython 0.12 and setting up my config file. Turning on logging from the get-go was no problem, just setting c.TerminalInteractiveShell.logstart = True in ~/.ipython/profile_default/ipython_config.py. However, I also would like to have…
Juan
  • 5,433
  • 21
  • 23
4
votes
1 answer

Is there a way to search for text in the ipython qtconsole?

I'm using ipython with qtconsole. A feature I'm missing from the regular console is to search the console output. I'd expect to see it under the Edit menu. Is there a way to do it?
davidbrai
  • 1,229
  • 1
  • 9
  • 14
4
votes
1 answer

Starting IPython

I want to run IPython (version 0.12) on my Windows XP computer on which I already have Python 2.7 installed. I installed via the Windows binary installer, but after installation IPython did not show up in the menu and could not be started with the…
Coleman2
  • 41
  • 1
  • 2
4
votes
2 answers

libedit/readline conflict with ipython 3.2.2 on OS X 10.7 Lion

I've been trying to set up ipython 3 (running 2.7 works fine) on a mac running Lion, but can't seem to get rid of the following error: 192:~ mlauria$…
gnr
  • 2,324
  • 1
  • 22
  • 24
4
votes
1 answer

run from ipython with glob style expansion?

In ipython (0.10.2), I'd like to run with bash shell style (or glob.glob) expansion. I'd like to do something like these and have the arguments expand out just as they would if I were in bash. Is this possible? filenames = !ls *.sbet run sbet.py…
Kurt Schwehr
  • 2,638
  • 3
  • 24
  • 41
4
votes
3 answers

how to define functions in ipython configuration file?

Using ipython 0.11 if I type a function definition, like def f(s): print s then I can use that function in that ipython session, but I don't know how to define that in the ipython_config.py file. If I just type the function definition in the file…
skeept
  • 12,077
  • 7
  • 41
  • 52
4
votes
1 answer

Getting NameError: name 'null' is not defined after converting .ipynb to .exe file

I am using pyinstaller to convert .ipynb file to .exe file as i want my peers members to use it without depending on python but when i try to run the exe file i get the following error Traceback (most recent call last): File "Bot.ipynb", line 232,…
4
votes
2 answers

ipython and python are handling my string differently, why?

In python (2.7.1): >>> x = u'$€%' >>> x.find('%') 2 >>> len(x) 3 Whereas in ipython: >>> x = u'$€%' >>> x.find('%') 4 >>> len(x) 5 What's going on here? edit: including the additional info requested from the comments below ipython >>> import sys,…
wim
  • 338,267
  • 99
  • 616
  • 750
4
votes
1 answer

How to %run a list of notebooks in Databricks

I'd like to %run a list of notebooks from another Databricks notebook. my_notebooks = ["./setup", "./do_the_main_thing", "./check_results"] for notebook in my_notebooks: %run notebook This doesn't work ofcourse. I don't want to use…
blake
  • 481
  • 4
  • 14
4
votes
3 answers

ipython passwd not able to import with new 2022 Anaconda download

I am simply trying to do this from IPython.lib import passwd but I get this error In [1]: from IPython.lib import passwd --------------------------------------------------------------------------- ImportError Traceback…
justanewb
  • 133
  • 4
  • 15
4
votes
0 answers

Session/line number was not unique in database. History logging moved to new session

I am running an ipython script on VS code. The file is a .py where I run the jupyter cells using the '# %%' line separator. Random cells are giving me this Session/line number was not unique in database. History logging moved to new session…
Carlos Mougan
  • 761
  • 1
  • 8
  • 21
4
votes
2 answers

How to generate a Cocoa-recognized plot using matplotlib in Python on OS X (Leopard preferably)

I'm not sure exactly what is going on under the hood, but here is my setup, example code, and problem: setup: snow leopard (10.6.8) Python 2.7.2 (provide by EPD 7.1-2) iPython 0.11 (provided by EPD 7.1-2) matplotlib (provided by EPD…
jovo
  • 41
  • 1
4
votes
0 answers

Javascript between cells in Google Colab

I'm trying to get ipyvizzu, a JS charting library's Jupyter Notebook integration, to work inside Google Colab. It depends on Jupyter's behavior that generated javascript codes are put in the same scope throughout the notebook. Basically, the code…
simon
  • 1,210
  • 12
  • 26
4
votes
0 answers

VSCode Python interactive terminal scroll wheel is broken and does not show new output correctly

I have been using VSCode's interactive terminal for Python for a while and a recent version change seems to have broken the scroll wheel and output. For example, when sending code from the file to the terminal it works as expected: However, when…
gibbsbravo
  • 55
  • 5
4
votes
2 answers

Inputting just a comma returns strange behaviour

Today I by mistake inputted just a comma on an interactive session Input: , and I noticed strangely that it did not return an error but instead: Output '' So I explored a bit this behaviour and tried some random stuff, and it seems like it creates…
1 2 3
99
100