Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
slapos
Commits
0debd13c
Commit
0debd13c
authored
Jul 19, 2017
by
Iliya Manolov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! jupyter: Replace ipython_notebook with jupyter SR
parent
4249ad1a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
software/jupyter/buildout.hash.cfg
software/jupyter/buildout.hash.cfg
+3
-3
software/jupyter/custom.js.jinja
software/jupyter/custom.js.jinja
+2
-2
software/jupyter/jupyter_set_password.cgi.jinja
software/jupyter/jupyter_set_password.cgi.jinja
+7
-7
No files found.
software/jupyter/buildout.hash.cfg
View file @
0debd13c
...
...
@@ -16,7 +16,7 @@
[instance-jupyter-notebook]
filename = instance.cfg.in
md5sum =
f0abfc788f6a83773d07dd37f9728db0
md5sum =
9c2d41e611b1fd75e87a985726adf513
[jupyter-notebook-config]
filename = jupyter_notebook_config.py.jinja
...
...
@@ -24,7 +24,7 @@ md5sum = 720e90a829c63371696bc3009917a743
[jupyter-set-password]
filename = jupyter_set_password.cgi.jinja
md5sum =
d7d4a7e19d55bf14007819258bf42100
md5sum =
b8d31441780b524a7e52d1710dd78385
[erp5-kernel]
filename = ERP5kernel.py.jinja
...
...
@@ -36,4 +36,4 @@ md5sum = ab6e78ea20855e07d388b5b86d1770fe
[custom-js]
filename = custom.js.jinja
md5sum =
584aa839aa20263ba885537b74c83abd
md5sum =
0bf9e2eb1718b14307265fe05a167018
software/jupyter/custom.js.jinja
View file @
0debd13c
...
...
@@ -81,8 +81,8 @@
* @static
*/
$([
IPython
.events]).on('notebook_loaded.Notebook', function(){
var kernelname =
IPython
.notebook.kernel_selector.current_selection;
$([
jupyter
.events]).on('notebook_loaded.Notebook', function(){
var kernelname =
jupyter
.notebook.kernel_selector.current_selection;
var display_text="<div class='output_subarea output_text output_result'>\
<pre>Follow these steps to customize your notebook with ERP5 kernel :-</br>\
1. Make sure you have 'erp5_data_notebook' business template installed in your ERP5</br>\
...
...
software/jupyter/jupyter_set_password.cgi.jinja
View file @
0debd13c
...
...
@@ -24,16 +24,16 @@ if not os.path.exists(config_file):
parser = ConfigParser.ConfigParser()
parser.read(config_file)
if not parser.has_section("
ipython
_notebook"):
parser.add_section("
ipython
_notebook")
if not parser.has_section("
jupyter
_notebook"):
parser.add_section("
jupyter
_notebook")
if not parser.has_option("
ipython
_notebook", "password"):
parser.set("
ipython
_notebook", "password", "")
if not parser.has_option("
jupyter
_notebook", "password"):
parser.set("
jupyter
_notebook", "password", "")
if "password" in form:
parser.set("
ipython
_notebook", "password", passwd(form["password"].value))
parser.set("
jupyter
_notebook", "password", passwd(form["password"].value))
# subprocess.call('{{ httpd_graceful }}')
# TODO: we should restart
ipython
# TODO: we should restart
jupyter
with open(config_file, 'w') as file:
parser.write(file)
...
...
@@ -43,7 +43,7 @@ print "<html><head>"
print "
<link
rel=
\"stylesheet\"
href=
\"static/pure-min.css\"
>
"
print "
<link
rel=
\"stylesheet\"
href=
\"static/style.css\"
>
"
print "
</head><body>
"
print "
<h1>
IPython
Notebook Password :
</h1>
"
print "
<h1>
Jupyter
Notebook Password :
</h1>
"
print "
<form
action=
\"/index.cgi\"
method=
\"post\"
class=
\"pure-form-aligned\"
>
"
print "
<input
type=
\"hidden\"
name=
\"posting-script\"
value=
\"{{
pwd
}}/{{
this_file
}}\"
>
"
...
...
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