Conversation
Codecov Report
@@ Coverage Diff @@
## master #701 +/- ##
==========================================
+ Coverage 96.82% 96.84% +0.02%
==========================================
Files 45 45
Lines 11169 11245 +76
Branches 2058 2065 +7
==========================================
+ Hits 10814 10890 +76
Misses 294 294
Partials 61 61
Continue to review full report at Codecov.
|
|
|
||
| (body, resources) = html_exporter.from_notebook_node(notebook) | ||
|
|
||
| return "<div class='relate-notebook-container'>%s</div>" % body |
There was a problem hiding this comment.
This is hard to review, as the code was moved. What was changed in addition to the move?
There was a problem hiding this comment.
I guess config_callback was added. Anything else?
There was a problem hiding this comment.
I guess config_callback was added. Anything else?
Yes. Because we need a different template (built-in basic.tpl template) as compared to what we do when we call the render_notebook_cells method, which uses the nbconvert_template.tpl.
I'll check if there's other changes.
| :param clear_markdown: a :class:`bool` instance, indicating whether markdown | ||
| cells will be ignored.. | ||
| :param config: a :class:`traitlets.config.loader.Config` instance. | ||
| :param config_callback: a function which further handles `config` . |
| "listed": True, | ||
| "accepts_enrollment": True, | ||
| "git_source": "git://github.com/inducer/relate-sample", | ||
| "git_source": "git://github.com/dzhuang/relate-sample", |
There was a problem hiding this comment.
This should be changed back before merge.
| return ext, b64decode(answer_data["base64_data"]) | ||
|
|
||
|
|
||
| class FileUploadQuestion(FileUploadQuestionBase): |
There was a problem hiding this comment.
This is hard to review, as much of this code was moved. Could you outline the changes?
|
Here's a pretty important question that occurred to me: Can you find/add a link in source to nbconvert's policy on whether it's designed to be safe with untrusted input? |
I'll looking into that. At least, I found the notebook have the ability to execute Javascript scripts. I don't know whether that's still the case when its converted to html. That might be an issue before we can merge this PR. |
|
@inducer |
|
There's a sanitize preprocessor, we need to make sure the preprocessor is included when we do the convert. |
Fix #690