-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from iot-salzburg/update
Update build scripts for cuda 11.8 and PyTorch 2.x
- Loading branch information
Showing
17 changed files
with
8,372 additions
and
2,796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Add R mimetype to specify how the plot returns from R to the browser. | ||
# https://notebook.community/andrie/jupyter-notebook-samples/Changing%20R%20plot%20options%20in%20Jupyter | ||
|
||
options(jupyter.plot_mimetypes = c('text/plain', 'image/png', 'image/jpeg', 'image/svg+xml', 'application/pdf')) |
Submodule docker-stacks
updated
138 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) Jupyter Development Team. | ||
# Distributed under the terms of the Modified BSD License. | ||
import json | ||
import os | ||
from pathlib import Path | ||
|
||
import requests | ||
|
||
# A number of operations below deliberately don't check for possible errors | ||
# As this is a healthcheck, it should succeed or raise an exception on error | ||
|
||
runtime_dir = Path("/home/") / os.environ["NB_USER"] / ".local/share/jupyter/runtime/" | ||
json_file = next(runtime_dir.glob("*server-*.json")) | ||
|
||
url = json.loads(json_file.read_bytes())["url"] | ||
url = url + "api" | ||
|
||
r = requests.get(url, verify=False) # request without SSL verification | ||
r.raise_for_status() | ||
print(r.content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -exuo pipefail | ||
# Requirements: | ||
# - Run as non-root user | ||
# - The JULIA_PKGDIR environment variable is set | ||
# - Julia is already set up, with the setup-julia.bash command | ||
|
||
# Install base Julia packages | ||
julia -e ' | ||
import Pkg; | ||
Pkg.update(); | ||
Pkg.add([ | ||
"HDF5", | ||
"IJulia", | ||
"Pluto" | ||
]); | ||
Pkg.precompile(); | ||
' | ||
|
||
# Move the kernelspec out to the system share location. Avoids | ||
# problems with runtime UID change not taking effect properly on the | ||
# .local folder in the jovyan home dir. move kernelspec out of home | ||
mv "${HOME}/.local/share/jupyter/kernels/julia"* "${CONDA_DIR}/share/jupyter/kernels/" | ||
chmod -R go+rx "${CONDA_DIR}/share/jupyter" | ||
rm -rf "${HOME}/.local" | ||
fix-permissions "${JULIA_PKGDIR}" "${CONDA_DIR}/share/jupyter" | ||
|
||
# Install jupyter-pluto-proxy to get Pluto to work on JupyterHub | ||
mamba install --yes \ | ||
'jupyter-pluto-proxy' && \ | ||
mamba clean --all -f -y && \ | ||
fix-permissions "${CONDA_DIR}" && \ | ||
fix-permissions "/home/${NB_USER}" |
Oops, something went wrong.