cluster:usage_tips:jupyter

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cluster:usage_tips:jupyter [2022/02/17 11:56] – [Installing packages] lukabcluster:usage_tips:jupyter [2023/03/16 08:48] (current) – [Jupyter] lukab
Line 1: Line 1:
 ====== Jupyter ====== ====== Jupyter ======
 Jupyter is a notebook-based development platform for Python projects, widely used in machine learning projects. Jupyter is a notebook-based development platform for Python projects, widely used in machine learning projects.
-JuypyterHub is a service that provides Jypyter notebooks for users on a given machine. Currently, one jupyterHub server is accessible for Sleep Revolution researchers on the computing hub Salamander.+JuypyterHub is a service that provides Jypyter notebooks for users on a given machine. Currently, one jupyterHub server is accessible for Sleep Revolution researchers on the computing hub Dunwich.
  
 ===== Access ===== ===== Access =====
-In order to access the JupyterHub server, access the [[cluster:usage_tips:VPN|VPN]], and navigate to [[http://salamander.sleep.ru.is|salamander.sleep.ru.is]] (if that doesn't work you can also try [[http://130.208.209.2|130.208.209.2]]. You will be greeted with a login screen where you should use your Sleep revolution credentials (without @sleep.ru.is)+In order to access the JupyterHub server, access the [[cluster:usage_tips:VPN|VPN]], and navigate to [[https://dunwich.sleep.ru.is/jupyter|dunwich.sleep.ru.is/jupyter]]. You will be greeted with a login screen where you should use your Sleep revolution credentials (without @sleep.ru.is).
- +
-===== Usage ===== +
- +
- +
-The default JupyterHub interface has 3 python environments installed one python3 environment, one TensorFlow environment, and one PyTorch environment+
  
 ==== Adding environment ==== ==== Adding environment ====
Line 41: Line 36:
 jupyter kernelspec uninstall myenv jupyter kernelspec uninstall myenv
 </code> </code>
 +=====Working in Jupyter Notebooks=====
 +
 +Now you are ready to create your own Jupyter Notebook. Click the blue plus button in the main screen and select an environment, e.g. your newly created //myenv//.You can change the environment later by selecting a different kernel. 
  
 ==== Installing packages ==== ==== Installing packages ====
  
-To install a package, ''superpackage'' for example, to the example environment ''myenv'' that you created and added to the JupyterHub open a new python console on JupyterHub by selecting the ''myenv'' environment and executing the +To install a package, ''examplepackage'' for example, to the example environment ''myenv'' that you created and added to the JupyterHub open a new **python console** on JupyterHub by selecting the ''myenv'' environment and executing
  
-''conda install superpackage''+''conda install examplepackage''
  
-After the installation, you should be able to restart the kernel, and use your new ''superpackage''+After the installation, you should be able to restart the kernel, and use your new ''examplepackage'' 
 + 
 +====Access Data===== 
 + 
 +The path to access data from the sleep database always starts with ///datasets// 
 + 
 +**EXAMPLE:** 
 +If the name of your data set is "examplesleepstudy" you can read an .csv file in this folder like this: 
 + 
 +<code> 
 +pd.read_csv("/datasets/examplesleepstudy/examplefile.csv"
 +</code> 
 + 
 +In oder to explore the structure of the folder you are trying to access use the terminal to show the contents of the folder: 
 + 
 +<code> 
 +ls /datasets/examplesleepstudy 
 +</code>
  
  • cluster/usage_tips/jupyter.1645098960.txt.gz
  • Last modified: 2022/02/17 11:56
  • by lukab