[PYTHON] Until you use Google cola boratory

Anyway, I want an effective environment for python!

Nice to meet you. Since I started Qiita, I would like to summarize the process until I can use Google Colaboratory, which I use for a little deep learning, as well as practice writing blogs!

Target person

・ People who want to start programming in the humanities ・ People who want to start deep learning, people who want to use a free GPU environment

background

I think that the number of people who are using or trying to use python is increasing due to the artificial intelligence (AI) boom. I'm sure some of them have never dealt with programming before. For such people, I think the first barrier is the construction of an execution environment. As a relatively easy-to-understand thing to handle python, I installed Anaconda and jupyter notebook ..... There is something like that, but it was very difficult for me as a non-information system and it took many days just for this lol We recommend Google colaboratory first so that it doesn't happen.

1. 1. Log in to Google Drive

As the name suggests, Google colaboratory (hereinafter corab) is a service provided by Google, and it is a jupyter notebook environment that runs on the cloud .... I thought that if you don't understand well, you can run python anyway. Please!

colab runs a python program on Google Drive. Therefore, please log in to Google Drive first!

2. Installation of Colaboratory

image.png

If the screen looks like this ... Right-click around the center of the screen!

colab1.png

If the part surrounded by the red frame comes out .....

colab2.png

Click Other → Add App! Then I think that such a thing will come out.

image.png

Here, enter "colab" in "Search in apps" to search ... colab3.png

Click on Colaboratory ...

colab4.png

Click Install .... You will be asked for various permits, so if you click as you are told ...

colab5.png

Installation complete! This completes the python execution environment!

3. 3. Actually write a python program

Let's actually write a python program!

colab6.png Right-click on the drive → Other → Click Google Colaboratory ....

colab7.png Change the Untitled0 to your favorite name!

colab8.png

Type print ("Hello Colab ") ....

Click the arrow button or press Ctrl + Enter to execute .... colab9.png

Hello Colab! If the output is , the execution is successful! You can run a python program like this!

Next, I would like to write my first Deep learning article.

Thank you for your hard work!

Recommended Posts

Until you use Google cola boratory
Until you can use the Google Speech API
Note until you use emacs with WSL
Until you can use opencv with python
Until you use the Kaggle API with Colab
Until you use PhantomJS with Python on Heroku
Until you install MySQL-python
Use music21 on Google Colaboratory
How to use Google Colaboratory
Until you try the Google Cloud Vision API (harmful image detection)