Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
decd911f
Commit
decd911f
authored
Apr 27, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! fixup! ERP5 py3: WIP ( all changes squashed )
parent
242800cf
Pipeline
#34268
failed with stage
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
component/jupyter-py2/ERP5kernel.py
component/jupyter-py2/ERP5kernel.py
+1
-1
component/jupyter-py2/buildout.hash.cfg
component/jupyter-py2/buildout.hash.cfg
+2
-2
component/jupyter-py2/jupyter_notebook_config.py.jinja
component/jupyter-py2/jupyter_notebook_config.py.jinja
+15
-2
component/numpy/buildout.cfg
component/numpy/buildout.cfg
+1
-1
No files found.
component/jupyter-py2/ERP5kernel.py
View file @
decd911f
...
...
@@ -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
)
...
...
component/jupyter-py2/buildout.hash.cfg
View file @
decd911f
...
...
@@ -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
...
...
component/jupyter-py2/jupyter_notebook_config.py.jinja
View file @
decd911f
...
...
@@ -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:
...
...
component/numpy/buildout.cfg
View file @
decd911f
...
...
@@ -21,7 +21,7 @@ environment = numpy-env
eggs = ${cython:egg}
[versions]
numpy = 1.2
2.0
numpy = 1.2
6.4
[numpy:sys.version_info < (3,8)]
depends =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment