Skip to main content

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
0 votes
1 answer
29 views

How to invoke a cell magic inside a function?

Consider the following program, which I wrote in two Jupyter Notebook cells. Cell 1: import rumbledb as rmbl %load_ext rumbledb %env RUMBLEDB_SERVER=http://public.rumbledb.org:9090/jsoniq Cell 2: %%...
Evan Aad's user avatar
  • 5,967
0 votes
0 answers
15 views

Spyder console: "_" stops taking last result after being assigned to

I find it useful for _ to contain the value fo the last result. However, I sometimes want to use _ to suppress the printing of the return argument of a function call. Unfortunately, once _ has been ...
user2153235's user avatar
  • 1,038
0 votes
0 answers
30 views

Positioning Jupyter Notebook Output Above Cells Using IPython(Javascript)

I prepared a jupyter widget that searches keywords in ipynb file and run corresponding cells. For better displaying purposes I prefer this widget to be shown above all cells. To do so, I can easily ...
hamflow's user avatar
  • 138
0 votes
0 answers
41 views

How to visualize random forest plot using graphviz, in characters outside of UTF-8 (Chinese)

I am doing a random forest model on PC orders data, which is mostly in Chinese. I have done the model and accuracy checks. However, I can't seem to generate the image due to a UnicodeEncodeError, ...
Theodore Maximus's user avatar
0 votes
1 answer
35 views

How do I use Jupyter/IPython magic commands in VSCode?

I saw someone else using magic commands in VSCode, but when I try them, I get a syntax error. How do I get them to work? Note: The idea for this question came from an earlier question with a similar ...
wjandrea's user avatar
  • 31.7k
0 votes
1 answer
34 views

question about ipywidgets and running a different process

what is a better way to run this launching function separately from the ipywidgets process? from IPython.display import display from multiprocessing import Process from ipywidgets import widgets from ...
Anzing's user avatar
  • 1
0 votes
0 answers
26 views

qasync with IPython hangs on run_until_complete

I would like to have an asynchronous gui with PyQt5. The synchronous version of what I want would look like this: from PyQt5.QtWidgets import QPushButton, QMainWindow import asyncio import time import ...
Marc's user avatar
  • 1
-1 votes
0 answers
23 views

Why does ipdb make an unexplained error disappear?

I have a script that imports a module located in the plugins folder. When I run my script, I get the ModuleNotFoundError error (note that I use import) even though the module exists and I can import ...
Sun Water's user avatar
0 votes
0 answers
38 views

Efficient Python for Data Science Interactive setup with VSCode with Remote Development?

For the past two years I've been iterating my development setup. My use case for Python is data science and machine learning, meaning the Jupyter Notebook was my first choice and my primary need is to ...
user25867259's user avatar
0 votes
0 answers
25 views

sympy.init_printing() not working in IPython terminal session

I wanted to do some quick calculations and I was too lazy to open a notebook file, so I just opened an IPython session in the terminal. According to sympy's documentation calling sympy.init_printing() ...
Shai Avr's user avatar
  • 1,220
0 votes
1 answer
24 views

python: NON-pipadmin user gets ModuleNotFoundError after pipadmin installs ipython

Not a question, sharing something that worked for me: Two linux users, both in the same "programmers" linux group. 1st user is pipadmin, and does "pip install ipython" to a local ...
KibbleOrSoft's user avatar
0 votes
2 answers
104 views

How can I programmatically capture the output from the current cell in a function called from Jupyter / ipython?

I am trying to implement an ipython's magic cell function that takes the code from the current cell, runs it, and caches its output (in rich format) to a file. The final objective of my magic function ...
Jau A's user avatar
  • 477
0 votes
1 answer
42 views

ipywidgets: Why does the checkbox have an offset towards the left in when being placed inside of a HBox container

I have the following script from ipywidgets import Checkbox, Text, HBox, VBox, Layout, HTML from IPython.display import display checkbox = Checkbox(layout=Layout(width='8%', align_self='center')) ...
Yes's user avatar
  • 393
0 votes
0 answers
14 views

IPython cannot be installed [duplicate]

I tried to Install Ipython on an offline computer using the whl file. I got this error message. ERROR: Package 'ipython' requires a different Python: 3.9.6 not in '>=3.10' What do i do? I cannot ...
Mo711's user avatar
  • 587
0 votes
0 answers
31 views

ModuleNotFoundError: No module named 'librosa' when using Mozilla TTS

I'm currently working on voice recognition and trying to use the Mozilla TTS library: !git clone https://github.com/mozilla/TTS.git %cd TTS !pip install -r requirements.txt !pip install soundfile !pip ...
Danny Wen's user avatar
  • 101

15 30 50 per page
1
2 3 4 5
482