-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
157 changed files
with
10,696 additions
and
498 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0
distrib/linux/application.sh.in → distrib/linux/application.in
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/runjupyter console --kernel @CMAKE_PROJECT_NAME@ $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/runjupyter lab --ip 127.0.0.1 $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/runjupyter notebook --ip 127.0.0.1 $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/setpythonpath | ||
|
||
export PATH=${appDir}:$PATH | ||
|
||
${appDir}/python/bin/jupyter $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/setpythonpath | ||
|
||
${appDir}/bin/@CMAKE_PROJECT_NAME@ -c Python $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/python/bin/python ${appDir}/python/bin/setpythonpath.py ${appDir}/python -s |
0
distrib/macos/application.sh.in → distrib/macos/application.in
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/runjupyter console --kernel @CMAKE_PROJECT_NAME@ $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/runjupyter lab --ip 127.0.0.1 $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/runjupyter notebook --ip 127.0.0.1 $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/setpythonpath | ||
|
||
export PATH=${appDir}:$PATH | ||
|
||
${appDir}/@CMAKE_PROJECT_NAME@.app/Contents/Frameworks/Python/bin/jupyter $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/setpythonpath | ||
|
||
${appDir}/@CMAKE_PROJECT_NAME@.app/Contents/MacOS/@CMAKE_PROJECT_NAME@ -c Python $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
appDir="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
${appDir}/@CMAKE_PROJECT_NAME@.app/Contents/Frameworks/Python/bin/python \ | ||
${appDir}/@CMAKE_PROJECT_NAME@.app/Contents/Frameworks/Python/bin/setpythonpath.py \ | ||
${appDir}/@CMAKE_PROJECT_NAME@.app/Contents/Frameworks/Python \ | ||
-s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ECHO OFF | ||
|
||
TITLE Running the Jupyter Lab environment... | ||
|
||
SET appDir=%~dp0 | ||
|
||
CALL "%appDir%runjupyter.bat" console --kernel ${CMAKE_PROJECT_NAME} %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ECHO OFF | ||
|
||
TITLE Running the Jupyter Lab environment... | ||
|
||
SET appDir=%~dp0 | ||
|
||
CALL "%appDir%runjupyter.bat" lab --ip 127.0.0.1 %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
shell = CreateObject("WScript.Shell") | ||
appDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | ||
|
||
updatePythonPath = """"&appDir&"\Python\bin\Python.exe"" """&appDir&"\Python\Scripts\setpythonpath.py"" """&appDir&"\Python"" -s" | ||
|
||
shell.Run updatePythonPath, 0, True | ||
|
||
cmd = """"&appDir&"\Python\bin\Python.exe"" """&appDir&"\Python\Scripts\start_jupyter.py"" lab --ip 127.0.0.1" | ||
|
||
shell.Run cmd, 1, False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ECHO OFF | ||
|
||
TITLE Running the Jupyter Notebook environment... | ||
|
||
SET appDir=%~dp0 | ||
|
||
CALL "%appDir%runjupyter.bat" notebook --ip 127.0.0.1 %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
shell = CreateObject("WScript.Shell") | ||
appDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | ||
|
||
updatePythonPath = """"&appDir&"\Python\bin\Python.exe"" """&appDir&"\Python\Scripts\setpythonpath.py"" """&appDir&"\Python"" -s" | ||
|
||
shell.Run updatePythonPath, 0, True | ||
|
||
cmd = """"&appDir&"\Python\bin\Python.exe"" """&appDir&"\Python\Scripts\start_jupyter.py"" notebook --ip 127.0.0.1" | ||
|
||
shell.Run cmd, 1, False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@ECHO OFF | ||
|
||
TITLE Running the Jupyter environment... | ||
|
||
SET appDir=%~dp0 | ||
|
||
CALL "%appDir%setpythonpath.bat" | ||
|
||
"%appDir%Python\bin\Python.exe" "%appDir%Python\Scripts\start_jupyter.py" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ECHO OFF | ||
|
||
SET appDir=%~dp0 | ||
|
||
CALL "%appDir%setpythonpath.bat" | ||
|
||
"%appDir%bin\${CMAKE_PROJECT_NAME}" -c Python %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@ECHO OFF | ||
|
||
SET appDir=%~dp0 | ||
|
||
"%appDir%Python\bin\Python.exe" "%appDir%Python\Scripts\setpythonpath.py" "%appDir%Python" -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
# Get OpenCOR's root directory | ||
|
||
root = '\\'.join(sys.executable.split('\\')[:-3]) | ||
|
||
# Add the location of our binaries to the beginning of the system PATH | ||
|
||
path = os.environ['PATH'].split(';') | ||
|
||
path.insert(0, '%s\\bin' % root) | ||
path.insert(0, '%s\\Python\\Scripts' % root) | ||
path.insert(0, '%s\\Python\\bin' % root) | ||
|
||
os.environ['PATH'] = ';'.join(path) | ||
|
||
# Start Jupyter and wait for it to terminate | ||
|
||
try: | ||
jupyter = subprocess.Popen(['jupyter'] + sys.argv[1:], | ||
stderr=sys.stderr, | ||
stdout=sys.stdout) | ||
|
||
jupyter.wait() | ||
except KeyboardInterrupt: | ||
pass |
Oops, something went wrong.