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)

Apache Spark SQL- Installing Spark
Apache Spark SQL- Installing SparkApache Spark SQL- Installing Spark
Apache Spark SQL- Installing SparkExperfy
 
Powercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptxPowercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptxIgnacioTamayo2
 
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 JupyterHubTiago Simões
 
Docker and Kubernetes 101 workshop
Docker and Kubernetes 101 workshopDocker and Kubernetes 101 workshop
Docker and Kubernetes 101 workshopSathish VJ
 
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 CountyJérôme Petazzoni
 
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 hoursOpenCity Community
 
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 EditionJérôme Petazzoni
 
PDXPortland - Dockerize Django
PDXPortland - Dockerize DjangoPDXPortland - Dockerize Django
PDXPortland - Dockerize DjangoHannes Hapke
 
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...Tiago Simões
 
手把手帶你學Docker 03042017
手把手帶你學Docker 03042017手把手帶你學Docker 03042017
手把手帶你學Docker 03042017Paul Chao
 
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 ComputingDmitry Spodarets
 
Docker workshop 0507 Taichung
Docker workshop 0507 Taichung Docker workshop 0507 Taichung
Docker workshop 0507 Taichung Paul Chao
 
手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇Philip Zheng
 

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

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 ManagementNopphawanTamkuan
 
Unmanned Aerial Vehicle Application
Unmanned Aerial Vehicle ApplicationUnmanned Aerial Vehicle Application
Unmanned Aerial Vehicle ApplicationNopphawanTamkuan
 
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 DataNopphawanTamkuan
 
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 GEENopphawanTamkuan
 
Introduction to Synthetic Aperture Radar (SAR)
Introduction to Synthetic Aperture Radar (SAR)Introduction to Synthetic Aperture Radar (SAR)
Introduction to Synthetic Aperture Radar (SAR)NopphawanTamkuan
 
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 EarthquakeNopphawanTamkuan
 
SAR Data Applications for Disasters
SAR Data Applications for DisastersSAR Data Applications for Disasters
SAR Data Applications for DisastersNopphawanTamkuan
 
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)NopphawanTamkuan
 
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 CoherenceNopphawanTamkuan
 
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 limitationsNopphawanTamkuan
 
SAR Interferometry Technique
SAR Interferometry TechniqueSAR Interferometry Technique
SAR Interferometry TechniqueNopphawanTamkuan
 
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 SNAPNopphawanTamkuan
 
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 EarthquakeNopphawanTamkuan
 
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 QGISNopphawanTamkuan
 
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)NopphawanTamkuan
 
Play with Vector and Make Map
Play with Vector and Make MapPlay with Vector and Make Map
Play with Vector and Make MapNopphawanTamkuan
 
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)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

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
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.pptxAreebaZafar22
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
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Ữ Â...Nguyen Thanh Tu Collection
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
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.pdfNirmal Dwivedi
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Recently uploaded (20)

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
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Ữ Â...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
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
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

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