0% found this document useful (0 votes)
7 views24 pages

T1+ +Get+Environment+Ready

Uploaded by

enochmay123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views24 pages

T1+ +Get+Environment+Ready

Uploaded by

enochmay123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

Get Ready –

COMP4423 Computer Vision

Xulu ZHANG ( 張栩祿 ) Xiaoyong Wei ( 魏驍勇 )


compxulu.zhang@connect.polyu.hk
x1wei@polyu.edu.hk
Outline

• Coloab Tutorial

• Jupyter Environment Setup


Colab
Colab, or "Colaboratory", allows you to write and execute Python in
your browser, with

• Zero configuration required


• Access to GPUs free of charge
• Easy sharing
Colab
Step 1

• As Colab implicitly uses Google Drive for storing your notebooks,


ensure that you are logged in to your Google Drive account before
proceeding further.
Colab
Step 2
• Open the Colab website in
your browser − Your browser
would display the following
screen (assuming that you
are logged into your Google
Drive)
Colab
Step 3
• Click NEW NOTEBOOK
at the bottom of the screen. A
new notebook would open
up.
Colab
Setting Notebook Name
By default, the notebook uses the naming convention UntitledXX.ipynb.\
You can click on the name and type in the desired name.
Colab
Entering and Executing the code
1. Now, you can enter the code.
2. To execute the code, click the button on the left side of the code window, or
use the keyboard shortcut Ctrl+Enter (Command+Enter for Mac)
Colab
Adding Code Cells
To add more code, click the corresponding button.
Colab
Run All
To run the entire code in your notebook without an interruption, execute the
following menu options.
Colab
Cell Operations
To operate the cells, right click
and select the operation in the
menu.
Jupyter Notebook

The Jupyter Notebook is the original web application for


creating and sharing computational documents. It offers a
simple, streamlined, document-centric experience.
Jupyter
Step 1 Installation
• Download the Anaconda and install it.
Jupyter
Step 2.1 Check the conda Environment
• A conda environment is a directory that contains a specific collection
of conda packages that you have installed.
Conda environment
name
Jupyter

Step 2.2 Check the conda Environment

• Type in conda list to check out what


you have installed in this environment.
Jupyter
Step 3 Intall packages in the
environment

• Type in conda install xxx or pip


install xxx to install the desired
packages.

To install Pytorch, go to https://pytorch.org/


Jupyter
Step 4.1 Set up Jupyter

• Type in conda install jupyter notebook to install the jupyter.

• Type in jupyter notebook --generate-config and open the generated


file.
Jupyter
Step 4.2 Set up Jupyter

• Type in jupyter notebook password to set the password.

• Open the json file.


Jupyter Generated in Step 4.2 Generated in Step 4.1

Step 4.3 Set up Jupyter

• Copy and paste the


encrypted password.
(Remember to delete #
and save the file)
Jupyter
Step 4.4 Set up Jupyter
• There are also some useful settings in this config file.
Jupyter
Step 5.1 Open Jupyter
• To open Jupyter, you can select it in Window Start Menu or type in jupyter
notebook in Anaconda Prompt.
Jupyter
Step 5.2 Open Jupyter
• Now you can write your own code in your local computer!
Jupyter
Entering and Executing the code
• It is really similar in Colab

Run cell, interrupt the


Save and Add new cell execution, restart the kernel

Code
Thank you!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy