User Tools

Site Tools


latinet:unicaes:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
latinet:unicaes:start [2022/09/02 20:19] – [Code Snippets to Handle the Conda Environment] rolf001latinet:unicaes:start [2023/01/05 14:38] (current) – external edit 127.0.0.1
Line 3: Line 3:
 ====== UNICAES Python Workshop - 2022-09-01 ====== ====== UNICAES Python Workshop - 2022-09-01 ======
  
-Rolf Becker, Clein Sarmiento2022-09-01+**Workshop by Clein Sarmiento and Rolf Becker from HSRW on 2022-09-01**
  
 +**[[:latinet:hsrw:about_hsrw|About HSRW]]**
 +
 +
 +| {{ :latinet:unicaes:unicaes_ws_ph001.jpeg?nolink&400 |}} |
 +| Fig.: Great audience! :-) |
 +
 +===== Import Antigravity =====
  
 | {{https://imgs.xkcd.com/comics/python.png?400}}                 | | {{https://imgs.xkcd.com/comics/python.png?400}}                 |
 | Fig.: **Import antigravity**. \\ Source: https://xkcd.com/353/  | | Fig.: **Import antigravity**. \\ Source: https://xkcd.com/353/  |
 +
  
 ===== Preparation ===== ===== Preparation =====
  
   * Install the **[[https://www.anaconda.com/|Anaconda Python Data Science Suite]]**   * Install the **[[https://www.anaconda.com/|Anaconda Python Data Science Suite]]**
-  * Download the **{{:latinet:unicaes:unicaes_ws_v001.zip |zip file}}** with the workshop code+  * Download **{{:latinet:unicaes:unicaes_ws_v002.zip |unicaes_ws_v002.zip}}** containing the workshop Python code
  
 +===== Code Snippets to Handle the Conda Environment =====
 +
 +This code is to be executed in a terminal. I extended the list of software packages to be installed to run all provided workshop examples. Mac and Linux users just open a standard terminal. On Windows open the Anaconda Powershell prompt. \\ Execute the following code:
 +
 +<code bash>
 +# create conda environment including installation of all necessary packages
 +conda create -c conda-forge -n unicaes jupyterlab ipywidgets numpy pandas scipy scikit-learn matplotlib plotly seaborn 
 +
 +# activate conda environment                                                                       
 +conda activate unicaes
 +
 +# start Jupyter-Lab (<Ctrl>-C in the terminal to exit jupyter-lab)
 +jupyter-lab
 +
 +# leave conda envoronment and change to the base (default) environment
 +conda deactivate
 +
 +# remove environment (in case you want to delete it)
 +# conda env remove -n unicaes
 +</code>
  
  
 ===== Code Snippets to Handle the Conda Environment ===== ===== Code Snippets to Handle the Conda Environment =====
  
-This code is to be executed in a terminal. I extended the list of software packages to be installed to run all provided workshop examples. \\  +This code is to be executed in a terminal. I extended the list of software packages to be installed to run all provided workshop examples. Mac and Linux users just open a standard terminal. On Windows open the Anaconda Powershell prompt. \\ Execute the following code:
-Mac and Linux users just open a standard terminal. On Windows open the Anaconda Powershell prompt. \\ Execute the following code:+
  
 <code bash> <code bash>
-# create conda environment+# create conda environment including installation of all necessary packages
 conda create -c conda-forge -n unicaes jupyterlab ipywidgets numpy pandas scipy scikit-learn matplotlib plotly seaborn  conda create -c conda-forge -n unicaes jupyterlab ipywidgets numpy pandas scipy scikit-learn matplotlib plotly seaborn 
  
Line 30: Line 57:
 # start Jupyter-Lab (<Ctrl>-C in the terminal to exit jupyter-lab) # start Jupyter-Lab (<Ctrl>-C in the terminal to exit jupyter-lab)
 jupyter-lab jupyter-lab
 +
 +# leave conda envoronment and change to the base (default) environment
 +conda deactivate
  
 # remove environment (in case you want to delete it) # remove environment (in case you want to delete it)
latinet/unicaes/start.1662142789.txt.gz · Last modified: 2023/01/05 14:38 (external edit)