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
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
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
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
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
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
'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
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.
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
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
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
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
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
Is there a way to run an ipython like debug console in VC Code that would allow tab completion and other sort of things?
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
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.
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
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
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
I'm new to coding but I simply want to change directory and run jupyter. The problem is cmd instantly closes once it reaches the jupyter notebook command. Trie