[Python] Error in importing a .ipynb file in jupyter notebook

Discussão em 'Python' iniciado por Stack, Novembro 22, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to import a .ipynb as a module in google colab.

    I installed the library and tried to import ipynb file but I am getting an error.

    Can somebody tell me how to resolve this error?

    !pip install import_ipynb
    import import_ipynb
    import /content/drive/MyDrive/CSRNet-pytorch/make_dataset.ipynb


    I get this error:

    File "<ipython-input-11-7fb3bfd02505>", line 2
    import /content/drive/MyDrive/CSRNet-pytorch/make_dataset.ipynb
    ^
    SyntaxError: invalid syntax

    Continue reading...

Compartilhe esta Página