Google Colab - Importing Python Scripts as Modules!

Google Colab - Importing Python Scripts as Modules!

Adrian Dolinay

2 года назад

55,105 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Anshul Singhal
Anshul Singhal - 17.11.2023 16:03

I have code folder with many .py files how to run that in google colab

Ответить
Fawaz Bashiru
Fawaz Bashiru - 04.09.2023 21:33

Thank you so much

Ответить
Banva Akib
Banva Akib - 06.08.2023 18:15

Thank you sir

Ответить
AAYUSH RAJBHAR
AAYUSH RAJBHAR - 23.07.2023 08:55

Thank you very much 😄

Ответить
Aadil Zikre
Aadil Zikre - 10.04.2023 21:48

Very Helpful and to the point. Thankyou!

Ответить
Filipe Batista de Sousa
Filipe Batista de Sousa - 29.03.2023 15:56

Tu é o mais pica

Ответить
Pedro Rodrigues
Pedro Rodrigues - 07.03.2023 02:12

I never feel the need to comment because I think a like and a subscribe is enough. But man, Thank you for your page and the time you have put towards the videos. I just took a look through the "All about Python" playlist and I'm speechless. I hope your profile continues to grow by the day! Blessings!

Ответить
Vikram Sai
Vikram Sai - 06.03.2023 21:16

thanks a lot. very helpful.

Ответить
khánh duy Phan
khánh duy Phan - 23.02.2023 19:08

as a newbie in python code, i feel really grateful your work. This first step took me a night.

Ответить
ashwin kumar
ashwin kumar - 20.02.2023 20:35

But I am getting error

Ответить
ashwin kumar
ashwin kumar - 20.02.2023 20:35

I want to use config python script declared variable in user define function parameter like fun_name(config.val_path) in google colab notebook.

Ответить
Tsi.
Tsi. - 17.10.2022 15:42

Thank you so much! Your video is so easy to follow and you helped me a lot on my school activity! Do take care!!!

Ответить
Emphatic
Emphatic - 22.09.2022 16:37

say i have a folder named "utils" in google drive. In this folder i have several .py files -- i want to call "from utils import ___.py" -- this does not work with the methods you mentioned. any help please?

Ответить
Võ Hiệp Thành
Võ Hiệp Thành - 02.09.2022 13:40

Many thanks bro, your video help me a lot.

Ответить
A Na
A Na - 28.08.2022 07:30

Sir , simple and powerful, thank you some much for making this video .

Ответить
sajjad
sajjad - 25.08.2022 23:45

thanks alot

Ответить
Blink Drive
Blink Drive - 23.07.2022 20:50

The first method is working well for me. Thank you very much

Ответить
A K
A K - 23.06.2022 19:27

thank you! can u import it as .ipynb directly without having to go through saving it as .py?

Ответить
Santiago Acevedo
Santiago Acevedo - 21.06.2022 16:55

Thank you!

Ответить
Asad khan
Asad khan - 17.06.2022 14:35

Thank you, Sir .

Ответить
Sukanya
Sukanya - 13.06.2022 08:01

Excellent!

Ответить
MachineLearning_DeepLearning
MachineLearning_DeepLearning - 13.05.2022 18:00

Amazing your video. Thank you so much!

Ответить
Santiago Arango
Santiago Arango - 20.04.2022 14:05

Thank you very much! Have an amazing day!

Ответить
Govind Soni
Govind Soni - 14.04.2022 14:59

is there an difference between module and package because i have __init__.py in module?

Ответить
lorenzo andreas frisch
lorenzo andreas frisch - 04.04.2022 14:10

grazie bro

Ответить
Govind Soni
Govind Soni - 29.03.2022 21:43

i have .py file module ,there are many files in the folder and i have uploaded that folder in gdrive and firstly i have mounted the gdrive in collab but while importing particular folder i getting no module found error.
so how to deal with it??

Ответить
Brian Yeh
Brian Yeh - 29.03.2022 19:31

thank you

Ответить
Raja Gopal Tangella
Raja Gopal Tangella - 14.03.2022 13:44

Hi Adrian,
How can I use a function that I've created in another.ipynb in my current.ipynb in Colab?
I have mounted my gdrive into current ipynb. Can you suggest next steps.

Ответить
Amir Hossein Ghasemi
Amir Hossein Ghasemi - 27.02.2022 12:26

how can i open a .py file completely in colab? (scrips as well)

Ответить
Manjunath Patkar
Manjunath Patkar - 15.02.2022 20:46

Hi Adrian, can you help with the below error:

cp: cannot stat '/content/drive/MyDrive/Colab Notebooks/Coolingcoffee.ipynb': No such file or directory

Ответить
SP
SP - 15.02.2022 11:39

How to install .whl file in colab?

Ответить
Abd Alrahman
Abd Alrahman - 04.02.2022 20:25

am having issue, what i want to do is importing class from other python file so for example am in file x so : from y import yclass, so i get error that y is not resloved, do you have any idea how to resolve it?

Ответить
SAGARIKA GHOSH
SAGARIKA GHOSH - 21.12.2021 17:16

can you write down the code for importing a .py file from Google drive because screen is not visible

Ответить
Aditya Goel
Aditya Goel - 01.12.2021 18:43

While importing, I get an error - NameError: name 'null' is not defined. Stackoverflow says that this is because I simply renamed my .ipynb colab file to .py file which is not acceptable. The file should be written in .py from the beginning. How to write a .py file in colab from the beginning?

Ответить
Jump Shot
Jump Shot - 28.11.2021 08:51

its useful but the screen display is not clear

Ответить
Anayanzi Martínez
Anayanzi Martínez - 27.10.2021 06:35

So helpful! Thanks!

Ответить
Alberto Soriano Gómez
Alberto Soriano Gómez - 18.10.2021 22:23

Thank you! Super clear and useful explanation!

Ответить