Skip to content
Snippets Groups Projects
Commit d6fb7d94 authored by Jean-Luc Parouty's avatar Jean-Luc Parouty
Browse files

Merge branch 'master' of gricad-gitlab.univ-grenoble-alpes.fr:talks/fidle

parents 410f1343 60bc0788
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
##
import tensorflow as tf
import torch
import sys, os
# Check data set is found
......@@ -16,5 +17,12 @@ print("FIDLE_DATASETS_DIR = ", os.path.expanduser(datasets_dir))
print("Python version = {}.{}".format(sys.version_info[0], sys.version_info[1]))
# Check tensorflow version
print("Tensorflow version = ", tf.__version__)
# Obsolete command
#print("Tensorflow GPU/CUDA available = ", tf.test.is_gpu_available())
print("Tensorflow GPU/CUDA available = ", "true" if len(tf.config.list_physical_devices('GPU')) else "False")
# Chech Pytorch version
print("Pytorch version = ", torch.__version__)
print("Pytorch GPU/CUDA available = ", torch.cuda.is_available())
sys.exit(0)
......@@ -11,9 +11,12 @@ LABEL maintainer=soraya.arias@inria.fr
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 DEBIAN_FRONTEND=noninteractive
RUN apt update --fix-missing && \
apt install -y apt-utils wget git \
apt install -y --no-install-recommends apt-utils && \
apt install wget curl git \
python3-venv python3-pip && \
apt -y dist-upgrade && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt install -y nodejs && \
apt clean && \
rm -fr /var/lib/apt/lists/*
......@@ -35,8 +38,7 @@ RUN mkdir /notebooks/; cd /notebooks && \
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/talks/fidle.git
# Add Jupyter configuration (no browser, listen all interfaces, ...)
#COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
COPY notebook.json /root/.jupyter/nbconfig/notebook.json
COPY jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
COPY fidle_env_test.py /root/fidle_env_test.py
# Jupyter notebook uses 8888
......@@ -55,4 +57,4 @@ ENV SHELL=/bin/bash
ENV FIDLE_DATASETS_DIR=/data/fidle-datasets
# Run a notebook by default
CMD ["jupyter", "notebook", "--port=8888", "--ip=*", "--allow-root", "--notebook-dir=/notebooks/fidle", "--no-browser"]
CMD ["jupyter", "lab"]
This diff is collapsed.
# Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## Set the log level by value or name.
c.Application.log_level = 'INFO'
#------------------------------------------------------------------------------
# NotebookApp(JupyterApp) configuration
#------------------------------------------------------------------------------
## The IP address the notebook server will listen on.
c.NotebookApp.ip = '*'
# Password to access the server
c.Notebook.password = ''
c.Notebook.allow_password_change = False
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = '/notebooks/fidle'
## Whether to open in a browser after starting. The specific browser used is
# platform dependent and determined by the python standard library `webbrowser`
# module, unless it is overridden using the --browser (NotebookApp.browser)
# configuration option.
c.NotebookApp.open_browser = True
## The port the notebook server will listen on.
c.Notebook.port = 8888
## Allow running as root
c.Notebook.allow_root = True
## Disable the "Quit" button on the Web UI (shuts down the server)
c.NotebookApp.quit_button = False
......@@ -5,4 +5,7 @@ Matplotlib
Pandas
Pandoc
pyyaml
torch
torchvision
torchaudio
Jupyterlab
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment