-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathlaunch_notebook_here.bat
41 lines (34 loc) · 1.03 KB
/
launch_notebook_here.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
34
35
36
37
38
39
40
41
set WINPYTHON=c:\winpython32
set WINP_ENV=%WINPYTHON%\scripts\env.bat
set winp_env
chcp 1251
@echo off
rem ************************************
rem usage :
rem * 'set WINP_ENV=' must point to "a" winpython env.bat script
rem (in "your WinPython base directory"\Scripts\env.bat )
rem * place it in any directory with .ipynb
rem * double-click on it to launch the ipython notebook
rem ************************************
rem ** check error (or not parametrized yet)
set error_info="%WINP_ENV%" not ok
if exist "%WINP_ENV%" goto no_Error_message
:Error_message
echo .
echo Îøèáêà : Óêàæèòå ïðàâèëüíûé ïóòü ê ïàïêå ñ WinPython â ïåðâîé ñòðîêå ýòîãî ôàéëà!
echo .
echo íàïðèìåð : set WINPYTHON=C:\WinPython32
echo .
pause
exit
:no_Error_message
call "%winp_env%"
echo Âåðñèÿ WinPython: %WINPYVER%
echo .
echo Ïàïêà ñ áëîêíîòàìè:
echo %~dp0
echo äëÿ ïðîâåðêè ìîæíî âûïîëíèòü â áëîêíîòå êîìàíäó:
echo print (get_ipython().profile_dir.location) "
echo .
@echo on
%WINPYTHON%\scripts\ipython_notebook --notebook-dir=%~dp0