SlideShare a Scribd company logo
1 of 9
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

Similar to Setting-Up Python Environment (Jupyter Notebook)

PDXPortland - Dockerize Django
PDXPortland - Dockerize DjangoPDXPortland - Dockerize Django
PDXPortland - Dockerize Django
Hannes Hapke
 

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

Apache Spark SQL- Installing Spark
Apache Spark SQL- Installing SparkApache Spark SQL- Installing Spark
Apache Spark SQL- Installing Spark
 
Powercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptxPowercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptx
 
How to create a secured multi tenancy for clustered ML with JupyterHub
How to create a secured multi tenancy for clustered ML with JupyterHubHow to create a secured multi tenancy for clustered ML with JupyterHub
How to create a secured multi tenancy for clustered ML with JupyterHub
 
Docker and Kubernetes 101 workshop
Docker and Kubernetes 101 workshopDocker and Kubernetes 101 workshop
Docker and Kubernetes 101 workshop
 
Introduction to Docker at Glidewell Laboratories in Orange County
Introduction to Docker at Glidewell Laboratories in Orange CountyIntroduction to Docker at Glidewell Laboratories in Orange County
Introduction to Docker at Glidewell Laboratories in Orange County
 
Conda environment system how to use it on CSUC machines
Conda environment system how to use it on CSUC machinesConda environment system how to use it on CSUC machines
Conda environment system how to use it on CSUC machines
 
How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
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 machinesConda environment system & how to use it on CSUC machines
Conda environment system & how to use it on CSUC machines
 
Conda environment system how to use it on CSUC machines
Conda environment system how to use it on CSUC machinesConda 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
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special EditionIntroduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
 
PDXPortland - Dockerize Django
PDXPortland - Dockerize DjangoPDXPortland - Dockerize Django
PDXPortland - Dockerize Django
 
How to create a multi tenancy for an interactive data analysis with jupyter h...
How to create a multi tenancy for an interactive data analysis with jupyter h...How to create a multi tenancy for an interactive data analysis with jupyter h...
How to create a multi tenancy for an interactive data analysis with jupyter h...
 
Conda environment system how to use it on CSUC machines
Conda environment system how to use it on CSUC machinesConda environment system how to use it on CSUC machines
Conda environment system how to use it on CSUC machines
 
手把手帶你學Docker 03042017
手把手帶你學Docker 03042017手把手帶你學Docker 03042017
手把手帶你學Docker 03042017
 
Docker Insight
Docker InsightDocker Insight
Docker Insight
 
ABCs of docker
ABCs of dockerABCs of docker
ABCs of docker
 
Containers for Science and High-Performance Computing
Containers for Science and High-Performance ComputingContainers for Science and High-Performance Computing
Containers for Science and High-Performance Computing
 
Docker
DockerDocker
Docker
 
Docker workshop 0507 Taichung
Docker workshop 0507 Taichung Docker workshop 0507 Taichung
Docker workshop 0507 Taichung
 
手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇
 

More from NopphawanTamkuan

More from NopphawanTamkuan (20)

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

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

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