This commit is contained in:
Oleg Sheynin 2024-06-02 00:18:10 -04:00
parent d44fc8e177
commit 22dcbd47c9
5 changed files with 85 additions and 5 deletions

View File

@ -3,12 +3,14 @@ version: '3.8'
services: services:
jupyter: jupyter:
build: /opt/jupyter_gpu build: /opt/jupyter_gpu
image: cvtt/jupyter_gpu:v1.0.2 image: cvtt/jupyter_gpu:v1.0.3
container_name: cvtt_gpu_jupyter container_name: cvtt_gpu_jupyter
runtime: nvidia runtime: nvidia
environment: environment:
- JUPYTER_ENABLE_LAB=yes - JUPYTER_ENABLE_LAB=yes
volumes: 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: ports:
- "8888:8888" - "8888:8888"

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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"}}

View File

@ -38,11 +38,68 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 2,
"id": "7313a620-a0eb-4207-a12a-90aeee3cd980", "id": "7313a620-a0eb-4207-a12a-90aeee3cd980",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
"source": [] {
"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": { "metadata": {