Skip to content

Instantly share code, notes, and snippets.

@kohakurei
Last active September 22, 2015 13:44
Show Gist options
  • Save kohakurei/79e2903f4a000900b939 to your computer and use it in GitHub Desktop.
Save kohakurei/79e2903f4a000900b939 to your computer and use it in GitHub Desktop.
ipython notebookで起動するバッチ
@echo off
SET OSGEO4W_ROOT=C:\OSGeo4W64
CALL %OSGEO4W_ROOT%\bin\o4w_env.bat
@echo off
path %PATH%;%OSGEO4W_ROOT%\apps\qgis\bin
set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis\python;
set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27\Lib\site-packages
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT%\apps\qgis
SET IPYTHON="%OSGEO4W_ROOT%\apps\Python27\Scripts\ipython.exe"
CD %USERPROFILE%
start "PyCharm aware of QGIS" /B %IPYTHON% notebook %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment