Disappearance of all cell outputs of a jupyter notebook in Google Colab - jupyter-notebook

I have a big problem. All cell outputs my Jupyter notebook in Google Colab are deleted. I do not know why, if I accidentally pressed "Restart and run all" or something similar.
Is there any way to restore the state of the notebook from this disappearance of the cell outputs?
Can someone help me? Many thanks for any help

Check the revision history using the File -> Revision history menu.

Slightly old, but adding an answer here anyway. If it doesn't appear in the revision history there you can refresh the page at which the notebooks are present, and the output should reappear even if you had previously cleared it.

Related

White Lines on Jupyter Notebook stopping kernal from running cells

I'm working on a jupyter notebook at the minute and these 4 white lines have popped up which seems to kill the kernal. Manually I can run any cells after this but it won't do it automatically.
https://i.stack.imgur.com/IANAm.png
I can't click into them to edit or delete them. I have no idea where they appeared from.
Hoping someone can shed some light
I just Googled this as I have the same problem. Saving the Notebook and refreshing the browser window worked for me on a case-by-case basis.
But apparently it's fixed now, so updating your Jupyter-Lab should solve the issue.

Why is r sourcing my script when i want to save it?

first time asking things here. Appreciate this community. I got a problem. If I want to save my script in RStudio either with the shortcut ctrl+s or if i click the icon on the top it only sources my active script. I even changed the shortcuts, but it didnt change anything. Is there anything i'm missing. Is this a known bug? Anyone can help me, i love the saving shortcut strg+s, thanks!

Got an empty notebook when following the shared link

I'm taking the Data Science course on Coursera, the task is to share your notebook on IBM Watson Studio. I followed all the steps to generate the link but when I try to open it, it shows an empty notebook with one empty cell.
I tried to open on other browsers, private tabs.
Reached out to the staff on Coursera but nothing helpful, only got a screenshot of steps to follow which I did.
You need to save your notebook using "Save Version" menu option and not just "Save"
I am guessing that you didn't hit the "From URL" tab. Here's a screenshot.

Atom: Unstaged Changes Pop Up

I'm using the Atom IDE, and an "Unstaged Changes" tab pops up each time I switch to an other tab (see image below).
I know what unstaged changes are, I just don't know how to keep the window from popping up all the time. I've turned off all the packages that contain the word "git", but that didn't solve the isse. Any help would be appreciated!
Atom Unstaged Changes Tab
I uninstalled Atom, and reinstalled it. That solved the problem. I was hoping to not have to uninstall, but it was really making me crazy to work with the constant pop-ups.
Thanks for all the comments! It seems like it wasn't a problem with the .git file in the project folder (since that wouldn't be effected by reinstalling Atom)

"Save and Checkpoint": What notebook state info is "saved"?

I am curious about exactly what notebook state information is saved whenever one clicks "save and checkpoint" in a Jupyter notebook. I know any python changes are saved, but I am wondering if the state of widgets/html that is "displayed" is also saved. For instance: Let's say I have button in the notebook that runs display(HTML(html)) when clicked. If I click that button, display the html, and then save my notebook, will the state of display be saved? Is the state of the notebooks "cells" saved, so that html that is displayed in a new cell is also saved?
Any direction to documentation about the "save and checkpoint" behavior is appreciated. Having trouble finding a detailed description in the Jupyter docs. Thanks!
"Save and checkpoint" is the same as using "Autosave" except that it makes a hidden backup copy on disk (in case you have a later autosave and want to revert). Some plugins can do more with save and checkpoint, like having many checkpoints, but that's not the default behavior.
As for whether it saves the widget state, the answer will sadly be: it depends. For simple, well-written widgets that for example just use #interact; it should. For more complex widgets, it may not because saving arbitrary state is not always feasible.
The best way to know is the following: Write your code in a notebook, save and refresh the page. If it's still there it was saved, otherwise it's not.

Resources