mirror of
https://github.com/jasonppy/VoiceCraft.git
synced 2026-04-03 09:46:45 +02:00
Thanks to [jay-c88](https://github.com/jasonppy/VoiceCraft/pull/25#issuecomment-2027980511) for the windows batch file! This does the thing to actually install the jupyter notebook kernel and instructs the user to refresh their browser to pickup the changes in the notebook.
22 lines
508 B
Batchfile
22 lines
508 B
Batchfile
:: Windows Docker Context Batch File
|
|
:: No need to install nvidia toolkit as Windows driver supports docker GPUs
|
|
:: Credit to github/jay-c88 for this
|
|
:: https://github.com/jasonppy/VoiceCraft/pull/25#issuecomment-2028053878
|
|
@echo off
|
|
|
|
docker start jupyter > nul 2> nul || ^
|
|
docker run -it ^
|
|
-d ^
|
|
--gpus all ^
|
|
-p 8888:8888 ^
|
|
--name jupyter ^
|
|
--user root ^
|
|
-e NB_USER="%username%" ^
|
|
-e CHOWN_HOME=yes ^
|
|
-e GRANT_SUDO=yes ^
|
|
-w "/home/%username%" ^
|
|
-v %cd%:"/home/%username%/work" ^
|
|
jupyter/base-notebook
|
|
|
|
pause
|