Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
b9f825f3
Commit
b9f825f3
authored
Apr 04, 2019
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_notebook: If the Python statements have no output, then don't display anything
parent
9c428be4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js
...ateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js
+1
-7
No files found.
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js
View file @
b9f825f3
...
...
@@ -289,7 +289,7 @@
div
.
style
.
margin
=
'
40px 10px
'
;
div
.
style
.
paddingLeft
=
'
10px
'
;
if
(
result_text
!==
'
undefined
'
)
{
if
(
result_text
!==
undefined
)
{
result
.
innerHTML
=
result_text
;
pre
.
appendChild
(
result
);
div
.
appendChild
(
pre
);
...
...
@@ -299,13 +299,11 @@
function
executePyCell
(
line_list
)
{
var
result_text
,
code_text
=
line_list
.
join
(
'
\n
'
);
try
{
result_text
=
pyodide
.
runPython
(
code_text
);
}
catch
(
e
)
{
result_text
=
e
.
message
;
}
renderCodeblock
(
result_text
,
'
python
'
);
}
...
...
@@ -364,10 +362,6 @@
console
.
log
(
"
Loading pyodide.asm.js
"
);
return
loadJSResource
(
'
pyodide.asm.js
'
);
})
.
push
(
function
()
{
console
.
log
(
"
Delay the execution
"
);
return
RSVP
.
delay
();
})
.
push
(
function
()
{
console
.
log
(
"
Prepare to set postRun and pyodide
"
);
return
pyodideSetting
();
...
...
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