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.
This commit is contained in:
John W. Leimgruber III
2024-03-30 10:48:10 -04:00
parent bd8c747c91
commit c54b343bfb
3 changed files with 40 additions and 8 deletions

21
start-jupyter.bat Normal file
View File

@@ -0,0 +1,21 @@
:: 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