SlideShare a Scribd company logo
3
Most read
6
Most read
7
Most read
Center for Research and Application for Satellite Remote Sensing
Yamaguchi University
Setting-Up Python Environment
(Jupyter Notebook)
Contents:
This manual is to help in setting up the environment for running
python code as well as Jupyter notebook. Contents are arranged in
following manners:-
1. Creating a project
2. Activating the Environment
3. Installing the libraries
4. Listing the libraries
5. Making the virtual environment compatible with jupyter notebook
6. Jupyter notebook running
• Create a folder for the project
• Using GUI or
• Through shell: $ mkdir <project name>
• Change path: $ cd <project path>
• Creating a virtual environment for our project (generally same as project name for easy to remember) .
• $ conda create --name <virtual environment name> <python=version>
*In place of ‘conda’ we can also
use Python package manager
(‘pip’ or ‘pip3’). It will be mostly
same with few exceptions.
Creating a Project
• $ conda info —envs (For listing all the virtual environments)
• $ conda activate <virtual environment name> OR
• $ source activate < virtual environment name> (Activate the virtual
environment that we want to use for our project)
• After that we can see virtual environment name in starting of prompt.
• For deactivating this: $ conda deactivate
• For removing: $ conda env remove -–name <virtual environment name>
Activating the Environment
• $ conda install <libraryName1 libraryName2>
• Libraries for ex. OpenCV, TensorFlow, PyTorch, Keras etc.
• $ conda install tensorflow
• $ conda install pytorch torchvision -c pytorch
*detail description has been provided on other manual namely libraries_setup
Installing the libraries
• $ conda list (this command will list all the installed libraries/packages)
Listing the libraries
• $ conda install ipykernel
• $ ipython kernel install --user --name=<virtual environment name>
• $ jupyter notebook & (For running jupyter notebook)
• It will give a string with token (Highlighted with red ellipse) which can be copy pasted in browser
to run the instance of the notebook
Making the Virtual Environment compatible with Jupyter
• Create a new notebook using the Kernel which has been created in last exercise (for example here
Python_Learning).
Jupyter Notebook
• Jupyter notebook gives the flexibility to run a block of code (called cell) at a time, by using Run
button( ) or using shortcut Shift+Enter(return) key.
Output
Kernel
Writing a Simple Program in Jupyter Notebook

More Related Content

PDF
Introduction to Docker at the Azure Meet-up in New York
PDF
Introduction to Docker, December 2014 "Tour de France" Edition
PDF
Workshop : 45 minutes pour comprendre Docker avec Jérôme Petazzoni
PPTX
Conda environment system & how to use it on CSUC machines
PDF
Introduction to Docker and deployment and Azure
PDF
Docker 1 0 1 0 1: a Docker introduction, actualized for the stable release of...
PDF
Using Conda in Oracle Data Science.pdf
PPTX
Docker in OpenStack
Introduction to Docker at the Azure Meet-up in New York
Introduction to Docker, December 2014 "Tour de France" Edition
Workshop : 45 minutes pour comprendre Docker avec Jérôme Petazzoni
Conda environment system & how to use it on CSUC machines
Introduction to Docker and deployment and Azure
Docker 1 0 1 0 1: a Docker introduction, actualized for the stable release of...
Using Conda in Oracle Data Science.pdf
Docker in OpenStack

Similar to Setting-Up Python Environment (Jupyter Notebook) (20)

PPTX
Apache Spark SQL- Installing Spark
PPTX
Powercoders · Docker · Fall 2021.pptx
PPTX
How to create a secured multi tenancy for clustered ML with JupyterHub
PDF
Docker and Kubernetes 101 workshop
PDF
Introduction to Docker at Glidewell Laboratories in Orange County
PDF
Conda environment system how to use it on CSUC machines
PDF
How to master OpenStack in 2 hours
PDF
Conda environment system & how to use it on CSUC machines
PDF
Conda environment system how to use it on CSUC machines
PDF
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
PDF
PDXPortland - Dockerize Django
PPTX
How to create a multi tenancy for an interactive data analysis with jupyter h...
PDF
Conda environment system how to use it on CSUC machines
PDF
手把手帶你學Docker 03042017
PDF
Docker Insight
PPTX
ABCs of docker
PDF
Containers for Science and High-Performance Computing
PPTX
KuberneteSADASDSADASDASDASDASDASDAs Labs.pptx
PPTX
PDF
手把手帶你學 Docker 入門篇
Apache Spark SQL- Installing Spark
Powercoders · Docker · Fall 2021.pptx
How to create a secured multi tenancy for clustered ML with JupyterHub
Docker and Kubernetes 101 workshop
Introduction to Docker at Glidewell Laboratories in Orange County
Conda environment system how to use it on CSUC machines
How to master OpenStack in 2 hours
Conda environment system & how to use it on CSUC machines
Conda environment system how to use it on CSUC machines
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
PDXPortland - Dockerize Django
How to create a multi tenancy for an interactive data analysis with jupyter h...
Conda environment system how to use it on CSUC machines
手把手帶你學Docker 03042017
Docker Insight
ABCs of docker
Containers for Science and High-Performance Computing
KuberneteSADASDSADASDASDASDASDASDAs Labs.pptx
手把手帶你學 Docker 入門篇
Ad

More from NopphawanTamkuan (20)

PDF
Application of OpenStreetMap in Disaster Risk Management
PDF
Unmanned Aerial Vehicle Application
PDF
Co-Registration of Small-Scale Satellite Data
PDF
Visualizing CDR Data
PDF
Disaster Damage Assessment and Recovery Monitoring Using Night-Time Light on GEE
PDF
Introduction to Synthetic Aperture Radar (SAR)
PDF
Differential SAR Interferometry Using Sentinel-1 Data for Kumamoto Earthquake
PDF
SAR Data Applications for Disasters
PDF
Color Composite in ENVI (Case Study: Flood in Vietnam)
PDF
Earthquake Damage Detection Using SAR Interferometric Coherence
PDF
How to better understand SAR, interpret SAR products and realize the limitations
PDF
SAR Interferometry Technique
PDF
Flood Detection Using ALOS-2 Images in SNAP
PDF
Differential SAR Interferometry Using ALOS-2 Data for Nepal Earthquake
PDF
Flood Detection Using During-Flood SAR Image in QGIS
PDF
Color Composite in ENVI (Case Study: Flood in Myanmar)
PDF
Play with Vector and Make Map
PDF
Raster Analysis (Color Composite and Remote Sensing Indices)
PDF
Image Classification
PDF
Useful Tools in QGIS
Application of OpenStreetMap in Disaster Risk Management
Unmanned Aerial Vehicle Application
Co-Registration of Small-Scale Satellite Data
Visualizing CDR Data
Disaster Damage Assessment and Recovery Monitoring Using Night-Time Light on GEE
Introduction to Synthetic Aperture Radar (SAR)
Differential SAR Interferometry Using Sentinel-1 Data for Kumamoto Earthquake
SAR Data Applications for Disasters
Color Composite in ENVI (Case Study: Flood in Vietnam)
Earthquake Damage Detection Using SAR Interferometric Coherence
How to better understand SAR, interpret SAR products and realize the limitations
SAR Interferometry Technique
Flood Detection Using ALOS-2 Images in SNAP
Differential SAR Interferometry Using ALOS-2 Data for Nepal Earthquake
Flood Detection Using During-Flood SAR Image in QGIS
Color Composite in ENVI (Case Study: Flood in Myanmar)
Play with Vector and Make Map
Raster Analysis (Color Composite and Remote Sensing Indices)
Image Classification
Useful Tools in QGIS
Ad

Recently uploaded (20)

PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Lesson notes of climatology university.
PPTX
GDM (1) (1).pptx small presentation for students
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Complications of Minimal Access Surgery at WLH
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Presentation on HIE in infants and its manifestations
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
O7-L3 Supply Chain Operations - ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Lesson notes of climatology university.
GDM (1) (1).pptx small presentation for students
A systematic review of self-coping strategies used by university students to ...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
STATICS OF THE RIGID BODIES Hibbelers.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Complications of Minimal Access Surgery at WLH
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial disease of the cardiovascular and lymphatic systems
Presentation on HIE in infants and its manifestations
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
RMMM.pdf make it easy to upload and study
O7-L3 Supply Chain Operations - ICLT Program

Setting-Up Python Environment (Jupyter Notebook)

  • 1. Center for Research and Application for Satellite Remote Sensing Yamaguchi University Setting-Up Python Environment (Jupyter Notebook)
  • 2. Contents: This manual is to help in setting up the environment for running python code as well as Jupyter notebook. Contents are arranged in following manners:- 1. Creating a project 2. Activating the Environment 3. Installing the libraries 4. Listing the libraries 5. Making the virtual environment compatible with jupyter notebook 6. Jupyter notebook running
  • 3. • Create a folder for the project • Using GUI or • Through shell: $ mkdir <project name> • Change path: $ cd <project path> • Creating a virtual environment for our project (generally same as project name for easy to remember) . • $ conda create --name <virtual environment name> <python=version> *In place of ‘conda’ we can also use Python package manager (‘pip’ or ‘pip3’). It will be mostly same with few exceptions. Creating a Project
  • 4. • $ conda info —envs (For listing all the virtual environments) • $ conda activate <virtual environment name> OR • $ source activate < virtual environment name> (Activate the virtual environment that we want to use for our project) • After that we can see virtual environment name in starting of prompt. • For deactivating this: $ conda deactivate • For removing: $ conda env remove -–name <virtual environment name> Activating the Environment
  • 5. • $ conda install <libraryName1 libraryName2> • Libraries for ex. OpenCV, TensorFlow, PyTorch, Keras etc. • $ conda install tensorflow • $ conda install pytorch torchvision -c pytorch *detail description has been provided on other manual namely libraries_setup Installing the libraries
  • 6. • $ conda list (this command will list all the installed libraries/packages) Listing the libraries
  • 7. • $ conda install ipykernel • $ ipython kernel install --user --name=<virtual environment name> • $ jupyter notebook & (For running jupyter notebook) • It will give a string with token (Highlighted with red ellipse) which can be copy pasted in browser to run the instance of the notebook Making the Virtual Environment compatible with Jupyter
  • 8. • Create a new notebook using the Kernel which has been created in last exercise (for example here Python_Learning). Jupyter Notebook
  • 9. • Jupyter notebook gives the flexibility to run a block of code (called cell) at a time, by using Run button( ) or using shortcut Shift+Enter(return) key. Output Kernel Writing a Simple Program in Jupyter Notebook