当前位置:网站首页>Basic usage of Google colab (I)
Basic usage of Google colab (I)
2022-04-23 03:37:00 【Yi Lanjun】
One 、Google Colab Basic introduction of
- 1、Google colab It's a free Jupyter Notebook environment , You don't need to make any settings to use , And run completely in the cloud . And it's free to use Google Of GPU (Tesla K80)‘*
- Be careful : If you want to use Google colab need TZ.
- 2、Google colab You can put your Jupyter The notebook is stored in Google Cloud hard disk among , With the help of Google colab, You can write and execute code in the cloud 、 Save and share analysis results , And use powerful computing resources , All of these can be used for free through the browser .
Two 、Google Colab Use
1、 utilize Google Browser search Google drive.
2、 Get into Google drive, Click go to Google Hard disk in the cloud .
3、 Create a new Google Colaboratory, open .
4、 a key :Google Colaboratory Basic operation method .
-
Basic operation 1:
-
Basic operation 2: Click Modify , Notebook settings , You can choose the hardware you want to use , Click save .
- Basic operation 3: Click to connect , Reconnect the colab.
- Basic operation 4:Goolge colab And Google Hard disk connection
- Be careful : You can also use code to mount Google Hard disk .
The code is as follows : Enter the code into the code box , Then click the link that appears below , Jump to verification code . Then enter the verification code into the box below .
from google.colab import drive
drive.mount('/content/drive')
- Basic operation 5: Basic command line commands
- 5.1 How to change folders :
import os
os.chdir("/content/drive")
- 5.2 How to change folders :
%cd + You want to go to the folder path
for example :%cd /content/drive/My Drive
- 5.2 pip install python package
!pip install + What you want to install python package
for example :!pip install numpy
- 5.3 clone GitHub Project on
!git clone + website
- 5.4 Run the folder in the hard disk python file
!python xxx.py
-
5.5 Use Jupyter Notebook Direct operation
Operation method and jupyter notebook equally , I won't repeat .
版权声明
本文为[Yi Lanjun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220602231592.html
边栏推荐
- Unity knowledge points (ugui 2)
- 【微服务】(十)—— 统一网关Gateway
- Picture synthesis video
- Design and implementation of redis (1): understand data structures and objects
- C set
- Opencv4 QR code recognition test
- Common exceptions
- Visual programming - drawing assignment
- Use of rotary selector wheelpicker
- Using jsonserialize to realize data type conversion gracefully
猜你喜欢
Redis(17) -- Redis缓存相关问题解决
Visual programming -- how to customize the mouse cursor
The art of concurrent programming (2): synchronized usage scenarios
MySQL zip installation tutorial
Instructions for fastmock
Romantic silhouette of L2-3 of 2022 group programming ladder Simulation Competition (25 points)
Design and implementation of redis (2): how to handle expired keys
Idea debug debugging tutorial
2022 group programming ladder game simulation L2-4 Zhezhi game (25 points)
Unity knowledge points (common core classes)
随机推荐
标识符、关键字、数据类型
Visual programming - Experiment 1
PyMOL usage
Use of rotary selector wheelpicker
Vscode delete uninstall residue
Visual programming - drawing assignment
Wechat payment iframe sub page has no response
The query type of MySQL is very inefficient.
对象和类的概念
Now is the best time to empower industrial visual inspection with AI
Several common methods of multithreading
Mechanical design knowledge point planning
Design and implementation of redis (6): how redis achieves high availability
Learn about I / O flow and file operations
Three column layout (fixed width on both sides in the middle and fixed width on both sides in the middle)
Oracle JDK vs OpenJDK
L3-011 直捣黄龙 (30 分)
Three types of jump statements
Initial experience of talent plan learning camp: communication + adhering to the only way to learn open source collaborative courses
Cmake qmake simple knowledge