Google Colab files are gone - google-colaboratory

Just spent like 8 hours coding in colab. I coded many python files and saved them on this files tab, under sample data but not in sample data. Got off and came back reopened the browser and all my files are gone!
Please help.

I guess this question is more about venting, right?!
Because there is nothing to do, as far as I know.
Obvious tip for next time, use Google Drive to store your scripts.
Playground only provides temporary session, so in order to save any changes, notebook files must be saved.
The easiest way to save Colab notebook is to save it in your Google Drive. Click File > Save a copy in Drive. Once you saved a copy of this tutorial, you can open it from your Google Drive or Colab dashboard
To mount Google Drive, run the below code and go to the link to retrieve the authorization code
from google.colab import drive
drive.mount('/content/gdrive')
Once mounted successfully, your entire Google Drive files should be accessible under /content/gdrive/My\ Drive/
!ls /content/gdrive/My\ Drive
How to use Google Colab

Well this might be a little late but...I just had the same issue as you and I fixed it. I just disconnected/reconnected my Google Drive and refreshed the browser. There is that folder icon in the folder tree with the google drive icon on it. Worth a shot...

Related

How to open Google Colab files in Neovim?

I am looking for a way to open Google Colab files in Neovim. I am basically trying to figure out a way to connect the two platforms since I have to work on Google Colab for some CUDA related assignment stuff and I just love Neovim, By doing this, I would also be able to use Neovim cheatsheets, Github Copilot and other productivity tools.
Any advice that would get me a step closer would be highly appreciated

Is there a way to store a generated file in an .ipynb jupyter notebook?

In jupyter notebooks a whole bunch of things that are effectively files can be represented, for example videos or images. This is one of their core strengths.
Is it possible to actually store a file in a notebook so that afterwards you can open the ipynb and still download the file when the backend is no longer running?

Jupyter: deploy from local to cloud environment?

I have a personnal IA project that requires a good computing power (training text recognition EasyOCR with new data).
It takes too much time to train (even more without CUDA GPU optimisation which I have difficulties to set up).
So I want to use Google Colab.
Problem, I don't know how to pass my project and make it work on Google Colab, I have hundreds of images and it ask me to accept every dowload ! And I can't download folder with stuff on it !
How can I pass a .zip project folder or just a project folder and make it works on a notebook ? (like Google Colab)
#Github Settings -> SSH and GPG keys -> Developers settings -> Personnal Access Tokens
!git clone https://USERNAME:TOKEN#github.com/USERNAME/REPOSITORY.git

Google Cloud Repositories does not show images in markdown file

It is almost 3 days that I am working on finding a solution to display the images in my Google cloud repository.
I did the same on bitbucket account and it works fine, but when I push everything into the google cloud repository the image does not show up in my README.md file.
I do not have any nested folder and all the files are placed into the root.
bellow you can find the syntax I used in my markdown file:
![google](google.png "Optional title")
![google](/google.png "Optional title")
![google](/master:google.png "Optional title")
None of them are working, I found another post on stack overflow that Google cloud repositories are a kind of bare repository. does it means there NO way to do that?
Could you please help me out with this?
I think this is not possible. Such a feature is not listed in the official documentation. Too bad are not a lot of people complaining about this. The only thing I could find was the following:
The only option is mirroring to Github or Bitbucket, but I think that is not what something you want. You could also just use Github instead of Cloud Repositories, which now integrates nicely with the google cloud platform, specifically Cloud Build.

home directory in google colab GUI sidebar

I can't seem to figure out where exactly is a home directory in Google Colab sidebar.
I have created a Test directory in ~/. I can't sort of find where is it in GUI mode. Anything I download in jupyter notebook goes in the content directory but I believe that's not ~. Any kind of help would be appreciated. Thanks
The home directory is /root. A few ways to check: