Commit decd911f authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! ERP5 py3: WIP ( all changes squashed )

parent 242800cf
Pipeline #34268 failed with stage
in 0 seconds
......@@ -75,7 +75,7 @@ class ERP5Kernel(Kernel):
self.title = None
# Allowed HTTP request code list for making request to erp5 from Kernel
# This list should be to used check status_code before making requests to erp5
self.allowed_HTTP_request_code_list = range(500, 511)
self.allowed_HTTP_request_code_list = list(range(500, 511))
# Append request code 200 in the allowed HTTP status code list
self.allowed_HTTP_request_code_list.append(200)
......
......@@ -19,7 +19,7 @@ md5sum = 8760f6cbc16277f09cc575ad87bdd25b
[jupyter-notebook-config]
filename = jupyter_notebook_config.py.jinja
md5sum = 5ee1e68ccdac3e5424709e9569b49e09
md5sum = a4c4fc83f8fe2f18a851bbb4cd0d20c7
[jupyter-set-password]
filename = jupyter_set_password.cgi.jinja
......@@ -27,7 +27,7 @@ md5sum = ac10fbcf790bd8e58750cfdd069812d2
[erp5-kernel]
filename = ERP5kernel.py
md5sum = 7d5309fe79afbcb455c0d8181b42e56c
md5sum = da04b99b70b2e327c9e9b4cdd056098e
[kernel-json]
filename = kernel.json.jinja
......
......@@ -42,10 +42,23 @@ c.ServerApp.ssl_options = {
'ssl_version': ssl.PROTOCOL_TLSv1_2,
}
if six.PY3:
if 0 and six.PY3: # WIP
import pathlib
import jupyterlab
c.LabApp.app_dir = str(pathlib.Path(jupyterlab.__file__).parent.parent / 'share' / 'jupyter' / 'lab')
# JUPYTERLAB_DIR set to ~/jupyter/lab
jupyterlab_dir = pathlib.Path(os.environ['JUPYTERLAB_DIR'])
if not jupyterlab_dir.exists():
jupyterlab_dir.mkdir()
for d in 'schemas', 'static', 'themes':
local_dir = jupyterlab_dir / d
if not local_dir.exists():
dir_from_package = (pathlib.Path(jupyterlab.__file__).parent.parent / 'share' / 'jupyter' / 'lab' / d)
local_dir.symlink_to(dir_from_package)
if d == 'static':
c.ServerApp.extra_template_paths = str(local_dir)
# c.LabApp.extra_template_paths = str(local_dir)
# c.LabApp.static_url_prefix = 'static/lab'
# c.ServerApp.static_url_prefix = 'static/lab'
with open(knowledge_0, 'w') as file:
......
......@@ -21,7 +21,7 @@ environment = numpy-env
eggs = ${cython:egg}
[versions]
numpy = 1.22.0
numpy = 1.26.4
[numpy:sys.version_info < (3,8)]
depends =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment