From 22dcbd47c9bb0191f9510c47a469297de70be3c8 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Sun, 2 Jun 2024 00:18:10 -0400 Subject: [PATCH] progress --- docker-compose.yml | 6 +- .../notification.jupyterlab-settings | 10 +++ .../themes.jupyterlab-settings | 10 +++ .../default-37a8.jupyterlab-workspace | 1 + notebooks/oleg/Testing GPU.ipynb | 63 ++++++++++++++++++- 5 files changed, 85 insertions(+), 5 deletions(-) create mode 100644 jupyter_settings/user-settings/@jupyterlab/apputils-extension/notification.jupyterlab-settings create mode 100644 jupyter_settings/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings create mode 100644 jupyter_settings/workspaces/default-37a8.jupyterlab-workspace diff --git a/docker-compose.yml b/docker-compose.yml index 642ad9d..5ac4ef9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,12 +3,14 @@ version: '3.8' services: jupyter: build: /opt/jupyter_gpu - image: cvtt/jupyter_gpu:v1.0.2 + image: cvtt/jupyter_gpu:v1.0.3 container_name: cvtt_gpu_jupyter runtime: nvidia environment: - JUPYTER_ENABLE_LAB=yes volumes: - - ./notebooks:/workspace + - /opt/jupyter_gpu/notebooks:/workspace + - /opt/jupyter_gpu/jupyter_settings/user-settings:/root/.jupyter/lab/user-settings + - /opt/jupyter_gpu/jupyter_settings/workspaces:/root/.jupyter/lab/workspaces ports: - "8888:8888" diff --git a/jupyter_settings/user-settings/@jupyterlab/apputils-extension/notification.jupyterlab-settings b/jupyter_settings/user-settings/@jupyterlab/apputils-extension/notification.jupyterlab-settings new file mode 100644 index 0000000..1cf5d98 --- /dev/null +++ b/jupyter_settings/user-settings/@jupyterlab/apputils-extension/notification.jupyterlab-settings @@ -0,0 +1,10 @@ +{ + // Notifications + // @jupyterlab/apputils-extension:notification + // Notifications settings. + // ******************************************* + + // Fetch official Jupyter news + // Whether to fetch news from Jupyter news feed. If `true`, it will make a request to a website. + "fetchNews": "false" +} \ No newline at end of file diff --git a/jupyter_settings/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings b/jupyter_settings/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings new file mode 100644 index 0000000..3f1a73b --- /dev/null +++ b/jupyter_settings/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings @@ -0,0 +1,10 @@ +{ + // Theme + // @jupyterlab/apputils-extension:themes + // Theme manager settings. + // ************************************* + + // Selected Theme + // Application-level visual styling theme. Ignored when Adaptive Theme is enabled. + "theme": "JupyterLab Dark" +} \ No newline at end of file diff --git a/jupyter_settings/workspaces/default-37a8.jupyterlab-workspace b/jupyter_settings/workspaces/default-37a8.jupyterlab-workspace new file mode 100644 index 0000000..b57bb27 --- /dev/null +++ b/jupyter_settings/workspaces/default-37a8.jupyterlab-workspace @@ -0,0 +1 @@ +{"data":{"layout-restorer:data":{"main":{"dock":{"type":"tab-area","currentIndex":1,"widgets":["notebook:oleg/Education/fastai/01_intro.ipynb","notebook:oleg/Testing GPU.ipynb"]},"current":"notebook:oleg/Testing GPU.ipynb"},"down":{"size":0,"widgets":[]},"left":{"collapsed":false,"visible":true,"current":"running-sessions","widgets":["filebrowser","running-sessions","@jupyterlab/toc:plugin","extensionmanager.main-view"],"widgetStates":{"jp-running-sessions":{"sizes":[1,0,0,0,0,0],"expansionStates":[true,false,false,false,false,false]},"extensionmanager.main-view":{"sizes":[0.3333333333333333,0.3333333333333333,0.3333333333333333],"expansionStates":[false,false,false]}}},"right":{"collapsed":true,"visible":true,"widgets":["jp-property-inspector","debugger-sidebar"],"widgetStates":{"jp-debugger-sidebar":{"sizes":[0.2,0.2,0.2,0.2,0.2],"expansionStates":[false,false,false,false,false]}}},"relativeSizes":[0.14887307236061684,0.8511269276393831,0],"top":{"simpleVisibility":true}},"docmanager:recents":{"opened":[{"path":"oleg/Education/fastai","contentType":"directory","root":"/workspace"},{"path":"oleg/Education/fastai/01_intro.ipynb","contentType":"notebook","factory":"Notebook","root":"/workspace"},{"path":"oleg","contentType":"directory","root":"/workspace"},{"path":"oleg/Testing GPU.ipynb","contentType":"notebook","factory":"Notebook","root":"/workspace"}],"closed":[]},"file-browser-filebrowser:cwd":{"path":"oleg"},"notebook:oleg/Education/fastai/01_intro.ipynb":{"data":{"path":"oleg/Education/fastai/01_intro.ipynb","factory":"Notebook"}},"notebook:oleg/Testing GPU.ipynb":{"data":{"path":"oleg/Testing GPU.ipynb","factory":"Notebook"}}},"metadata":{"id":"default"}} \ No newline at end of file diff --git a/notebooks/oleg/Testing GPU.ipynb b/notebooks/oleg/Testing GPU.ipynb index cbe50d0..89ffc15 100644 --- a/notebooks/oleg/Testing GPU.ipynb +++ b/notebooks/oleg/Testing GPU.ipynb @@ -38,11 +38,68 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "id": "7313a620-a0eb-4207-a12a-90aeee3cd980", "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "'3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]'" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import sys\n", + "sys.version" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "95d9a2e6-3464-4dbe-9a97-0c2d5eb34193", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "environ{'PATH': '/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n", + " 'HOSTNAME': '545710502a0b',\n", + " 'JUPYTER_ENABLE_LAB': 'yes',\n", + " 'NVIDIA_VISIBLE_DEVICES': 'all',\n", + " 'NVIDIA_DRIVER_CAPABILITIES': 'compute,utility',\n", + " 'LD_LIBRARY_PATH': '/usr/local/nvidia/lib:/usr/local/nvidia/lib64',\n", + " 'PYTORCH_VERSION': '2.2.1',\n", + " 'HOME': '/root',\n", + " 'LC_CTYPE': 'C.UTF-8',\n", + " 'JPY_SESSION_NAME': '/workspace/oleg/Testing GPU.ipynb',\n", + " 'JPY_PARENT_PID': '1',\n", + " 'PYDEVD_USE_FRAME_EVAL': 'NO',\n", + " 'TERM': 'xterm-color',\n", + " 'CLICOLOR': '1',\n", + " 'FORCE_COLOR': '1',\n", + " 'CLICOLOR_FORCE': '1',\n", + " 'PAGER': 'cat',\n", + " 'GIT_PAGER': 'cat',\n", + " 'MPLBACKEND': 'module://matplotlib_inline.backend_inline',\n", + " 'CUDA_MODULE_LOADING': 'LAZY'}" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import os\n", + "import pandas as pd\n", + "import matplotlib\n", + "os.environ" + ] } ], "metadata": {