czxttkl
czxttkl

Reputation: 516

Can I modify contents in Jupyter Notebook output cell?

In Jupyter notebook (FKA Ipython notebook), I have a cell which I ran for a long time until I got some text result in the output cell. However I found there is a small typo in the output that I would like to change without rerunning the cell again. Is there a way to modify contents in output cells?

Upvotes: 6

Views: 5497

Answers (3)

Shehzad Khan
Shehzad Khan

Reputation: 3

Open the Jupyter notebook file in a notepad and change the output as you desire.

Upvotes: 0

brian
brian

Reputation: 10989

The .ipynb files are just text files in JSON looking format. You can search for the typo and change it.

I suggest you fix the typo in the input cell in case you run it again and then save the notebook. Then open the .ipynb file and search for the error in an output cell and fix it. Save it as text and reopen in Jupyter. It will have changed.

Upvotes: 13

GreySage
GreySage

Reputation: 1180

No, the output is entirely dependent on the input cell, so you will need to modify the input and run it again.

Upvotes: -1

Related Questions