add ortools/python/ortools_notebook bazel target

This commit is contained in:
Laurent Perron
2023-02-06 16:21:11 +01:00
parent d045441876
commit 3c8e00f7bf
8 changed files with 277 additions and 14 deletions

View File

@@ -0,0 +1,11 @@
"""Launch the notebook server."""
import re
import sys
from notebook import notebookapp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(notebookapp.main())