Run the program without building a Python environment! !! (How to get started with Google Colaboratory)

At the beginning

I thought it would be faster to make it than to listen to the explanation if I was not familiar with artificial intelligence about a year ago Udemy Artificial intelligence using Python I bought a video about how to make it, but I was frustrated because I couldn't install ** numpy ** properly (laughs). But I was able to use numpy in this environment! If you have the same problem, please refer to it. Even if it doesn't, I hope this article will be read by anyone who doesn't know what to do with python to build an environment, or who has programmed on a tablet.

using google drive

I don't think anyone knows about it in this era, but if you create an account on google, you will be able to save 15G of capacity on the cloud for free. This time is the extension of that google drive? Let's run it in python using. * This time, I will not explain how to create a google account, sorry. There was an easy-to-understand explanation video on YouTube, so please go to here!

Preparation for google Colaboratory

First of all, please log in to your google account and then open the drive to see it. When opened, it should look like the image below. スクリーンショット 2020-08-23 16.45.45 1.png Then press New → Other → Add App. Then a window like the one below will be displayed. スクリーンショット 2020-08-23 16.49.22.png Search for "** Colaboratory **" from the app search. Press the button to add the blue app at the bottom left. So if you reload the drive again, you can open New → Other → Colaboratory. スクリーンショット 2020-08-23 16.52.06.png Now you are ready to go. It's that easy!

Let's see it using google Colaboratory!

When you open Colaboratory, the window looks like this at first. ![Screenshot 2020-08-23 16.54.49.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/581846/e4945840-045e-141d-ce8a- 3b5b0e78fcef.png) Let's see if python can actually be used. スクリーンショット 2020-08-23 16.58.31.png I found that I can use python firmly.

Finally, let's see if numpy can work. Let's see if we can use range, which is the basic function of numpy.

import numpy as np

number = np.array(range(1,10))
print(number)

Finally

This time I found it when I was watching Tamatama YouTube, so I will post the link. It's quite interesting so please take a look. The order has been reversed, but thank you for reading the article until the end. I'm still inexperienced in programming, but if it's different, I'd be happy if you could push it.

Recommended Posts

Run the program without building a Python environment! !! (How to get started with Google Colaboratory)
How to get started with Python
How to run the practice code of the book "Creating a profitable AI with Python" on Google Colaboratory
How to get into the python development environment with Vagrant
A layman wants to get started with Python
How to get started with the 2020 Python project (windows wsl and mac standardization)
How to get a list of files in the same directory with python
Building an environment to use CaboCha with google colaboratory
[Introduction to Python] How to get the index of data with a for statement
How to get started with Visual Studio Online ~ The end of the environment construction era ~
Let's get started with Python ~ Building an environment on Windows 10 ~
How to run a Python program from within a shell script
Minimum knowledge to get started with the Python logging module
How to get the last (last) value in a list in Python
How to build a python2.7 series development environment with Vagrant
[Introduction to Python] How to get data with the listdir function
Get started with Python! ~ ① Environment construction ~
Link to get started with python
How to get the Python version
Building a virtual environment with Python 3
How to get started with Scrapy
How to get started with Django
How to run Python on Windows without polluting the environment as much as possible (Scoop edition)
How to batch start a python program created with Jupyter notebook
[Introduction to Python] How to split a character string with the split function
Building a Windows 7 environment for getting started with machine learning with Python
[Python] A memo that I tried to get started with asyncio
Here's a brief summary of how to get started with Django
[Python] How to get a value with a key other than value with Enum
How to send a request to the DMM (FANZA) API with python
Building a Python3 environment with Amazon Linux2
Building a Python 3.6 environment with Windows + PowerShell
How to get a stacktrace in python
How to search Google Drive with Google Colaboratory
How Python beginners get started with Python with Progete
How to get started with laravel (Linux)
How to run a Maya Python script
[Python] Explains how to use the range function with a concrete example
How to get the date and time difference in seconds with python
[Introduction to Python] How to sort the contents of a list efficiently with list sort
[Introduction to Python] How to write a character string with the format function
How to debug a Python program by remotely connecting to a Docker container in WSL2 environment with VS Code
How to read a CSV file with Python 2/3
[Python] Get the files in a folder with Python
The easiest way to get started with Django
How to create a Python virtual environment (venv)
Building a python environment with virtualenv and direnv
Building a Python environment with WLS2 + Anaconda + PyCharm
How to get the files in the [Python] folder
Get a quick Python development environment with Poetry
How to drop Google Docs in one folder in a .txt file with python
Building an environment to comply with the Python coding standard (PEP8) with Eclipse + PyDev
Note: How to get the last day of the month with python (added the first day of the month)
[Python] How to create a local web server environment with SimpleHTTPServer and CGIHTTPServer
Prepare a development environment that is portable and easy to duplicate without polluting the environment with Python embeddable (Windows)
How to convert / restore a string with [] in python
Think about how to program Python on the iPad
How to run AutoGluon in Google Colab GPU environment
How to get the number of digits in Python
[Python] How to draw a line graph with Matplotlib
How to set up a Python environment using pyenv