如何获取一个包装好的 Jupyter 文档?

huangapple go评论50阅读模式
英文:

How to obtain a shrink-wrapped Jupyter document?

问题

I am very new to Jupyter Notebook so I might have missed the obvious, please point me in the right direction (it may also be JN is not the right tool for the task).

我对Jupyter Notebook非常不熟悉,可能已经错过了一些明显的东西,请指引我正确的方向(也可能JN不是适合这个任务的工具)。

I am preparing a piece of documentation which is composed by Some narrative text (in Markdown format) interspersed with images produced using various tools.

我正在准备一份由一些叙述性文本(以Markdown格式)和使用各种工具生成的图片交替组成的文档。

I have a tentative Notebook showing what I need.

我有一个临时的笔记本展示了我需要的内容。

I can also export in PDF format either from command line or from menu.

我还可以从命令行或菜单中导出为PDF格式。

Problem is the exported pages include both "cell content" and actual output, together with all In [xx] and Out [yy] flags and everything Jupyter finds fit to add (e.g.: warnings), while I would like to have "shrink wrapped" documentation containing only the "Out" parts, without any "decoration".

问题是导出的页面包括"cell content"和实际输出,以及所有In [xx]Out [yy]标志以及Jupyter认为适合添加的所有内容(例如:警告),而我希望有一个只包含"Out"部分的"shrink wrapped"文档,没有任何"装饰"。

I assume it should be possible, but I couldn't find out how.

我认为这应该是可能的,但我找不到方法。

英文:

I am very new to Jupyter Notebook so I might have missed the obvious, please point me in the right direction (it may also be JN is not the right tool for the task).

I am preparing a piece of documentation which is composed by Some narrative text (in Markdown format) interspersed with images produced using various tools.

I have a tentative Notebook showing what I need.

I can also export in PDF format either from command line or from menu.

Problem is the exported pages include both "cell content" and actual output, together with all In [xx] and Out [yy] flags and everything Jupyter finds fit to add (e.g.: warnings), while I would like to have "shrink wrapped" documentation containing only the "Out" parts, without any "decoration".

I assume it should be possible, but I couldn't find out how.

答案1

得分: 0

我对你的声明有一些评论,如果你只是想使用你已经拥有的笔记本,并且不想让输入代码单元格显示出来,仍然可以按传统方式获得PDF文档。

不过,关于你的说法,"也许JN不是完成任务的合适工具":

这可能是这样,也可能不是。但我建议你可能希望在工具箱中添加其他工具,以与笔记本一起处理这些步骤。你可以考虑将 MyST-tools / JupyterBooksQuarto 纳入你的工作流程中,以实现 "shrink-wrapping"。

有关MyST (MyST-tools) 的一些最新信息,请参见:

有关Quarto的一些最新信息:

英文:

I made some comments if you did want to use the notebooks you have and just not have the input code cells show up and still get a pdf the traditional way.

I think though in regards to your statement, "it may also be JN is not the right tool for the task":

That may or may not be the case.
However, I'd suggest you may want to add additional tools to your toolbox that handle the steps in conjunction with the notebooks.
You may want to incorporate MyST-tools / JupyterBooks or Quarto into your flow for 'shrink-wrapping'.

For some current stuff on MyST (MyST-tools), see:

Some current stuff on Quarto:

  • slides for 'Publishing Jupyter Notebooks with Quarto' at JupyterCon 2023 are here

huangapple
  • 本文由 发表于 2023年5月10日 18:59:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76217599.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定