Skip to content
Snippets Groups Projects
Commit 21c51d2f authored by Stefan Kesselheim's avatar Stefan Kesselheim
Browse files

added code

parent 178639be
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
mkdir -p ~/.local/share/jupyter/kernels/singularity_docker_jupyter
sed -e "s|/path/to|$PWD|" ./jupyter-jsc/kernel.json > ~/.local/share/jupyter/kernels/singularity_docker_jupyter/kernel.json
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=00:01:00
#SBATCH --partition=batch
#SBATCH --account=atmlaml
module load Singularity-Tools
echo "-------- Outside of the container -----------"
python src/hello_world.py
echo "-------- Inside of the container ------------"
singularity run singularity_docker_jupyter.sif python3 src/hello_world.py
echo "--------------------------------------------"
{
"argv": [
"/path/to/jupyter-jsc/kernel.sh",
"-f",
"{connection_file}"
],
"display_name": "singularity_docker_jupyter",
"language": "python"
}
#!/bin/bash
SOURCE_PATH=`dirname ${BASH_SOURCE}`
module purge
module load Singularity-Tools
exec singularity run ${SOURCE_PATH}/../singularity_docker_jupyter.sif python3 -m ipykernel "$@"
import sys
print("Hello world. This is my Python version:")
print(sys.version)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment