Files
VoiceCraft/start-jupyter.bat
John W. Leimgruber III c54b343bfb Add start-jupyter.bat for windows and fixup dependencies.
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.
2024-03-30 11:01:22 -04:00

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