[Python] Unable to open ipynb file in google collab when I cloned a repo from GitHub

Discussão em 'Python' iniciado por Stack, Julho 2, 2025.

  1. Stack

    Stack Membro Participativo

    I’ve cloned a GitHub repo in Google Colab:
    https://github.com/karkir0003/ML-Specialization-Coursera
    using the following:

    !git clone https://github.com/karkir0003/ML-Specialization-Coursera.git
    %cd "ML-Specialization-Coursera/Course 1/Week 1/Lab"


    Now, in this folder, I have a notebook file called C1_W1_Lab03_Cost_function_Soln.ipynb along with utility files like lab_utils_common.py.

    Problem:
    When I go to the file pane (left side) in Colab and double-click the .ipynb file, it opens as raw JSON instead of an executable notebook.

    What I want:
    I want to open this notebook as a regular executable notebook in Colab, with full access to its local dependencies (like utility files).

    What I don’t want:
    I do not want to simply paste the GitHub link of the .ipynb file into Colab, as that only opens the notebook separately without the repo’s files.

    Question:
    How do I open this cloned notebook inside Colab as an actual notebook, with full access to other files in the repo?

    Continue reading...

Compartilhe esta Página