Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colab notebook is not available anymore #474

Open
amrzv opened this issue Dec 7, 2024 · 1 comment
Open

colab notebook is not available anymore #474

amrzv opened this issue Dec 7, 2024 · 1 comment

Comments

@amrzv
Copy link

amrzv commented Dec 7, 2024

Hello.
The colab notebook
Open In Colab from README.md is no longer available on gdrive.
Can you please restore it?

@micedevai
Copy link

If the "Open in Colab" link from the README.md file of a GitHub repository is no longer working because the associated Google Colab notebook is unavailable, here are some steps you can follow to fix it:

1. Check if You Have a Copy of the Notebook

  • If you have a copy: If you or someone in your organization has a copy of the notebook that was originally linked to, you can upload it to your own Google Drive and share a new link.
  • If you don’t have a copy: If you don't have the notebook and the link is no longer available, you may need to reach out to the original author or maintainer of the project for access to the notebook.

2. Upload the Notebook to Google Drive (If You Have a Copy)

If you already have the Colab notebook (either in your local machine or from another source), follow these steps to restore it:

  1. Upload the notebook to your Google Drive:

    • Go to Google Drive.
    • Click the "New" button and select File upload.
    • Upload the .ipynb notebook file from your local machine.
  2. Get the shareable link:

    • Once the notebook is uploaded, right-click on the notebook in Google Drive.
    • Click on Get link.
    • Change the link-sharing settings to Anyone with the link (or select the appropriate access level).
    • Copy the shareable link.
  3. Update the README.md file:

    • Go to the GitHub repository where the broken link is located.
    • In the README.md file, find the "Open in Colab" link and update it to point to the new Google Drive link you just created.

    Example:

    [Open in Colab](https://drive.google.com/uc?id=YOUR_NOTEBOOK_ID)

    Replace YOUR_NOTEBOOK_ID with the actual ID from the new shareable link.


3. Ask the Original Maintainers or Contributors

If you don’t have the notebook and it’s crucial to restore the link, you can ask the original maintainer or the repository contributors for the Colab notebook. You can do this by creating an issue in the GitHub repository (or wherever the project is hosted).

  • Example issue request:

    ### Issue: Colab Notebook Link is Broken
    
    The "Open in Colab" link in the `README.md` is currently broken because the linked notebook on Google Drive is no longer available. Could someone please upload the notebook again or provide a new link?
    
    Thank you!

You can create this issue on GitHub by navigating to the Issues tab of the repository.


4. Use the Wayback Machine to Find Archived Versions of the Notebook

If you don't have the notebook and the maintainers aren’t available, you could try finding an archived version of the notebook. The Wayback Machine (Internet Archive) might have snapshots of the repository or the Google Drive link from when it was previously available.

  1. Visit Wayback Machine.
  2. Enter the URL of the repository or the link to the notebook.
  3. If the page was archived, you can download the notebook from there.

5. Recreate the Notebook

If the notebook is lost and no one can provide it, you may need to recreate the notebook based on the instructions or code in the repository. If the repository has detailed instructions or code comments, you can try running the scripts in a new Google Colab notebook and share it with others.

Once recreated, follow the steps above to upload it to your Google Drive and update the README with the new link.


6. Add a New Colab Link (If You're the Maintainer)

If you're the owner or maintainer of the repository, it's important to provide a working "Open in Colab" link so that others can easily access the notebook.

To do this:

  • Upload the notebook to your Google Drive (as mentioned earlier).
  • Obtain the new shareable link.
  • Edit the README.md and replace the old link with the new one.

Example of Updating the README with a New Colab Link:

Here’s an example of how the markdown for the "Open in Colab" link would look after you update it in the README.md file:

# My Project

This project demonstrates how to do X, Y, and Z.

## Open in Colab

You can run this project directly on Colab by clicking the link below:

[Open in Colab](https://drive.google.com/uc?id=YOUR_NOTEBOOK_ID)

Replace YOUR_NOTEBOOK_ID with the actual Google Drive ID of the new notebook link.


7. Verify the Link is Working

After you've restored or updated the notebook, make sure the link is working by testing it yourself. Click the "Open in Colab" link in the README.md file to verify that it opens the correct notebook on Google Colab.

Let me know if you need any further assistance with these steps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants