Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
ada6928e
Commit
ada6928e
authored
2 years ago
by
Lars Jitschin
Browse files
Options
Downloads
Patches
Plain Diff
separating python venv into tabs started, WIP
parent
a88d7885
No related branches found
Branches containing commit
No related tags found
2 merge requests
!687
Automated merge from preview to main
,
!632
Improving JupyterHub Documentation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/access/jupyterhub_custom_environments.md
+33
-15
33 additions, 15 deletions
...-dresden.de/docs/access/jupyterhub_custom_environments.md
with
33 additions
and
15 deletions
doc.zih.tu-dresden.de/docs/access/jupyterhub_custom_environments.md
+
33
−
15
View file @
ada6928e
...
...
@@ -51,22 +51,40 @@ to either use "Python virtualenv" or "conda environment".
## Python Virtualenv
Depending on the CPU architecture that you are targeting, please choose a
`modenv`
:
=== "scs5"
For use with Standard Environment
`scs5_gcccore-10.2.0_python-3.8.6`
,
please try to initialize your Python Virtual Environment like this:
```console
marie@compute$ module load Python/3.8.6-GCCcore-10.2.0
Module Python/3.8.6-GCCcore-10.2.0 and 11 dependencies loaded.
marie@compute$ mkdir user-kernel # please use workspaces!
marie@compute$ cd user-kernel
marie@compute$ virtualenv --system-site-packages my-kernel
created virtual environment CPython3.8.6.final.0-64 in 5985ms
creator CPython3Posix(dest=[...]/my-kernel, clear=False, global=True)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=[...])
added seed packages: pip==20.2.3, setuptools==50.3.0, wheel==0.35.1
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
marie@compute$ source my-kernel/bin/activate
(my-kernel) marie@compute$ pip install ipykernel
Collecting ipykernel
[...]
Successfully installed [...] ipykernel-6.9.1 ipython-8.0.1 [...]
```
=== "hiera"
TODOTODOTODOTODO
=== "ml"
TODOTODOTODOTODO
=== "default ('production')"
TODOTODTODOTOD, note, production environment uses Python 3.6
```
console
marie@compute$
module load Python/3.8.6-GCCcore-10.2.0
Module Python/3.8.6-GCCcore-10.2.0 and 11 dependencies loaded.
marie@compute$
mkdir
user-kernel
# please use workspaces!
marie@compute$
cd
user-kernel
marie@compute$
virtualenv
--system-site-packages
my-kernel
created virtual environment CPython3.8.6.final.0-64 in 5985ms
creator CPython3Posix(dest=[...]/my-kernel, clear=False, global=True)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=[...])
added seed packages: pip==20.2.3, setuptools==50.3.0, wheel==0.35.1
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
marie@compute$
source
my-kernel/bin/activate
(my-kernel) marie@compute$
pip
install
ipykernel
Collecting ipykernel
[...]
Successfully installed [...] ipykernel-6.9.1 ipython-8.0.1 [...]
(my-kernel) marie@compute$
pip
install
--upgrade
pip
(my-kernel) marie@compute$
python
-m
ipykernel
install
--user
--name
my-kernel
--display-name
=
"my kernel"
Installed kernelspec my-kernel in .../.local/share/jupyter/kernels/my-kernel
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment