Mimic the IPython notebook cell execution

手机数码 2013-09-30

Yesterday, I was visiting the Jake VanderPlas
's Scientific Python Course site
because of some issues raised at the ipython-dev mailing list (and obviously, because Jake usually do amazing things).

To build his site, Jake wrote an Hyde
plugin to render ipynb
files to static html files using the IPython.convert
platform. You can see an example of the final rendered document here
.

When I saw the final document, I wondered if we could have hidden output cells which automatically get visible after a click over the input cell... and then, I made some experiments using the power of the IPython.nbconvert
library 😉

NOTE: From here, to see the output of each cell, please click on the input area and surprise yourself!

First, we needed to rewrite some things at the Jinja
template level:

您可能感兴趣的

IPython / Jupyter 3 – hide the defau... Before IPython notebook version 3.0 the notebook headers could be hidden by default by adding this to ".ipythonprofile_defaultstaticcustomcustom.js...
《数据驱动安全:数据安全分析、可视化和仪表盘》一3.2获取数据... 本节书摘来异步社区《数据驱动安全:数据安全分析、可视化和仪表盘》一书中的第3章 ,第3.2节,杰·雅克布(Jay Jacobs)鲍布·鲁迪斯(Bob Rudis) 著 薛杰 王占一 张卓 胡开勇 蒋梦飏 赵爽 译, 更多章节内容可以访问云栖社区“异步社区”公众号查看...
Getting ob-ipython to show documentation during co... ob-ipython is an Emacs package that enables org-babel to talk to a running ipython kernel. The upshot of this is that you can use org-mode instead of...
Disordered code when using Emacs ipython Inferior ... I am using the newest emacs25.1.1 with the newest archlinux. However, when I edit a python scripts and send it to the Inferior ipython by using C...
Jupyter receives the ACM Software System Award It is our pleasure to announce that Project Jupyter has been awarded the 2017 ACM Software System Award , a significant honor for the project. We ...