-
Notifications
You must be signed in to change notification settings - Fork 30
/
run-qtconsole.bat
33 lines (29 loc) · 1.2 KB
/
run-qtconsole.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
set WINPYDIR="D:\Program Files\Python"
set WINPYVER=3.6.2
::set HOME=%WINPYDIR%\..\settings
set WINPYARCH="WIN-AMD64"
::if "%WINPYDIR:~-5%"=="amd64" set WINPYARCH="WIN-AMD64"
rem handle R if included
::if not exist "%WINPYDIR%\..\tools\R\bin" goto r_bad
::set R_HOME=%WINPYDIR%\..\tools\R
::if %WINPYARCH%=="WIN32" set R_HOMEbin=%R_HOME%\bin\i386
::if not %WINPYARCH%=="WIN32" set R_HOMEbin=%R_HOME%\bin\x64
::r_bad
rem handle Julia if included
::if not exist "%WINPYDIR%\..\tools\Julia\bin" goto julia_bad
::set JULIA_HOME=%WINPYDIR%\..\tools\Julia\bin\
::set JULIA_EXE=julia.exe
::set JULIA=%JULIA_HOME%%JULIA_EXE%
:::julia_bad
::set PATH=%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%WINPYDIR%\..\tools;%WINPYDIR%\..\tools\mingw32\bin;%WINPYDIR%\..\tools\mingw32\bin;%WINPYDIR%\..\tools\R\bin\i386;%WINPYDIR%\..\tools\Julia\bin;%PATH%;
set PATH=%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%PATH%;::set QT_API=pyqt
::call %~dp0pre-env.bat
set PYTHONPATH=%~dp0codes;%PYTHONPATH%
::set HOME=%~dp0settings
set BOOK_ROOT=%~dp0notebooks
::call %~dp0env.bat
cd notebooks
::ipython notebook --profile=scipybook2
jupyter qtconsole
::pause