Category "ipython"

Python Spyder- Horizontal scrollbar in IPython console hiding the last line

When the Spyder console has displayed output too wide to view, it adds a horizontal scroll bar to the bottom. This scrollbar hides the last command line of the

Import functions that use ipython magic

In ipython cells you can execute shell commands as follows: ipython: print("asdf") !echo asdf However, if you try to import this code from file, asdf.py: def a

Resize IPython.display.Audio bar

Is there a way to resize the audio display bar in jupyter notebooks? For example, if I wanted the bar to be twice the width of its default. This would help scru

What does the % in load_ext mean in python

There is a lot of discussion of %load_ext magic in Python (e.g. here https://ipython.readthedocs.io/en/stable/config/extensions/index.html) One thing that has a

Change Default kernel in jupyter notebook

I am using ipython 6.4.0 on ubuntu 20.04 and using jupyter kernelspec list , I found, there are 2 kernels : practice_applied_ai python3 When I open any .ipynb f

How to control the display precision of a NumPy float64 scalar?

I'm writing a teaching document that uses lots of examples of Python code and includes the resulting numeric output. I'm working from inside IPython and a lot

Is there a nice way to use the %env magic to *append* to an environment variable?

For example, I wanted to append to the PYTHONPATH environment using the %env magic. The only way I could figure out requires setting a "dummy" python variable a

I have installed ipython ,but could not open it

'ipython' is not recognized as an internal or external command, operable program or batch file. I have tried reinstalling python with add python to path optin

I have installed IPython, and still "No module named 'IPython'"

My Python version:Python 3.8.3 python -m pip install IPython gives me Successfully installed IPython-7.18.1 Still gives me the following error: from IPython.

Virtual Environment Activation from Command Prompt Returns "The system cannot find the path specified" but Activates Venv Anyway?

I created a virtual environment in a Windows terminal using the standard: python -m venv {venv name} Everything works as far as I can tell, but when I change i

import a function from another .ipynb file

I defined a hello world function in a file called 'functions.ipynb'. Now, I would like to import functions in another file by using "import functions". I am sur

kernel keeps dying in jupyter notebook

Whenever I start jupyter notebook and create a new python 3 notebook I get an error message saying kernel has died. I have tried deleting and installing ipython

jupyter-console fails to start, but jupyter-notebook is fine

I can start jupyter-notebook but not jupyter-console. In the dev virtualenv on a Mac, it tries to import cast_unicode_py2 from IPython.utils.py3compat, but cas

How to run an .ipynb Jupyter Notebook from terminal?

I have some code in a .ipynb file and got it to the point where I don't really need the "interactive" feature of IPython Notebook. I would like to just run it s

VS Code run ipython in debug console

Is there a way to run an ipython like debug console in VC Code that would allow tab completion and other sort of things?

Automatically view IPython console in Spyder

I am using Python 3.8 in Spyder. The graphics backend of the IPython console is set to 'automatic'. When I call the IPython Console with a Python algorithm, the

Clear all except for a few specific variables in IPython

I'm aware of the %reset and %reset_selective commands in IPython. However, let's say you have many variables and you want to clear all variables except x, y, z.

Convert raw Ipython Notebook txt to Ipynb

I have a textfile containing the source code for an Ipython Notebook. How can I convert this file using Ipython / Python to an Ipython Notebook? e.g. : sourc

IOPub data rate exceeded in Jupyter notebook (when viewing image)

I want to view an image in Jupyter notebook. It's a 9.9MB .png file. from IPython.display import Image Image(filename='path_to_image/image.png') I get the be

How to change IPython %pdb and %debug debugger?

By default, ipython uses ipdb as debugger with %pdb or %debug magics. However, I much prefer pdb++... Is there a way of changing the debugger called with these