-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Description
Relates to #396 (pretty html rendering) which can be implemented in 2 steps:
- (this issue)
eval()last line if it is an expression. This removes the need to useprint()to output the value of expressions. - Capture html output if there is a
__repr_html__. This allows nice rendering of e.g. pandas dataframes, plots and reports (currently implemented via a 'image' scraper in nilearn, nistats, mne)
There has been discussion at #421 (and a WIP PR #422) about using nbconvert to execute code blocks, which would address both issues above, however there were concerns about adding dependencies and no work around was agreed upon.
The plan for this issue would be to implement the same 'exec/eval' logic from jupyter-sphinx (as suggested by @maartenbreddels) in execute_code_block(). Thoughts welcome.
(cc @GaelVaroquaux)
choldgraf
Metadata
Metadata
Assignees
Labels
No labels