Skip to main content
2 votes
1 answer
104 views

How to clear output from all cells?

With iPython, is there any way to clear output from all cells? I am looking for a command that can do it in one shot. I see that clear_out like below can do the cleaning work, but it works for one ...
ThomasIsCoding's user avatar
0 votes
1 answer
53 views

Jupyter notebook shell command/line magic failure does not cause cell failure

I'm using a Jupyter notebook as a tutorial for a command-line tool. However, I noticed that regardless of whether I use a shell command (!) or line magic (%), an error does not cause the cell to fail, ...
Adam Stewart's user avatar
  • 2,223
0 votes
1 answer
47 views

How to execute a command sent to the IPython terminal in VSCode?

I'm using VSCode with a keybinding that sends a command to the terminal, where IPython is running (not Jupyter Notebook, just plain IPython in the terminal). I want to select a line of code (e.g. ...
Nguyễn Cảnh Dũng's user avatar
0 votes
0 answers
71 views

numpy TypeError with importing GPflow in ipython

I installed GPflow and just tried to import it with ipython. But, I got an error like below. --------------------------------------------------------------------------- TypeError ...
sadradio's user avatar
1 vote
1 answer
86 views

Jupyter notebook IPython not defined (IPython v 8.30.3 installed)

I'm trying to run a jupyter notebook featuring interactive ipywidgets using a new laptop with a new installation of jupyter/ anaconda, but consistently get the error 'Javascript Error: IPython is not ...
iambirdy's user avatar
1 vote
1 answer
232 views

Cannot install/run IPykernel in VS Code

I'm new to VS Code and Python. When I tried to use interactive window I failed to install IPykernel. I am using Mac system and have already installed Jupyter and Python in VS Code. I am using conda ...
Chessia Huang's user avatar
1 vote
1 answer
67 views

AssertionError: IPython must be installed to use initjs()! Run `pip install ipython` and then restart shap

I installed IPython with pip install ipython and I was able to install it. However PyCharm gives this error: C:\Users\HP\PycharmProjects\CE475Exercises\CE475Project.py:150: FutureWarning: Passing ...
Beliz Yazici's user avatar
-1 votes
2 answers
194 views

Why doesn't exec() create objects in local/global scope?

I'm trying to find an IPython counterpart to Spyder's runfile. According to this page, "exec() will execute the input code in the current scope" by default. Therefore, I expect the ...
user2153235's user avatar
  • 1,265
0 votes
0 answers
28 views

Use trace module from Spyder console

I was looking for how to echo commands to the console as a Python script is executing. Google pointed me to the trace module, but what I found online shows that it must be specified when invoking ...
user2153235's user avatar
  • 1,265
0 votes
0 answers
39 views

How to interrupt a while loop using a button click with Jupyter Notebook

I have a dashboard that gets node count, etc. from slurm and displays that as a button grid, and is refreshed every n seconds. I want the ability to click on any of the buttons and have something ...
kmt's user avatar
  • 65
4 votes
5 answers
328 views

How to use Jupyter notebooks or IPython for development without polluting the venv?

Best practice for Python is to use venv to isolate to the imports you really need. I use python -m venv. For development, it's very convenient to use IPython and notebooks for exploring code ...
SRobertJames's user avatar
  • 9,367
0 votes
0 answers
101 views

%store -r returns "TypeError: 'PickleShareDB' object is not subscriptable"

I have a string variable I've defined in one Jupyter notebook that I'd like to use in another Jupyter notebook. I know from here that %store is an approach, but when I use %store -r <variable> ...
slackbinhead's user avatar
0 votes
0 answers
75 views

python/Jupyter-lab: How to use built-in JSON visualization functionality for a dataclass

IPython/Jupyter has built-in functionality to visualise JSON structures as an interactive tree where you can expand and collapse nodes. I like using it for lists and dictionaries, but now I want to ...
sTievie's user avatar
  • 75
1 vote
0 answers
84 views

PDF export error when using Markdown cells in Jupyter Notebook

I have encountered an issue when trying to export jupyter notebooks that contains any form of text in "Markdown cells". The export is succesful IF the notebook only contains "code cells&...
user29984476's user avatar
-1 votes
1 answer
34 views

Launching ipython in vscode

I am currently transitioning from using Jupyter notebooks to .py files, and I want to to able to execute certain lines of code in my program interactively I know that if I (1) select the block of code ...
HHH's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
481