百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
J

jekyll-jupyter-notebook

> 编程语言
开源

Jekyll Jupyter 笔记本插件

169 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Jekyll Jupyter 笔记本插件

README

Name

Jekyll Jupyter Notebook plugin

Description

Jekyll Jupyter Notebook plugin adds Jupyter Notebook support to Jekyll. You can embed Jupyter Notebooks into your texts.

Install

Add the following line to your site's Gemfile:

ruby
gem "jekyll-jupyter-notebook"

Run the following command line to make the gem available:

bash
% bundle install

Add the following line to your site's _config.yml:

yaml
plugins:
  - jekyll-jupyter-notebook

Usage

Put a Jupyter Notebook (sample.ipynb) to the directory that has the target text (my-text.md) like the following:

.
|-- my-text.md
`-- sample.ipynb

Put the following tag into the target text:

markdown
{% jupyter_notebook "sample.ipynb" %}

If you use kramdown as Markdown parser and get strange result, try to surround {% jupyter_notebook ...%} with {::nomarkdown} and {:/nomarkdown} like the following:

markdown
{::nomarkdown}
{% jupyter_notebook "sample.ipynb" %}
{:/nomarkdown}

Configurations

You can customize .ipynb to .html conversion by jupyter_notebook in _config.yml:

yaml
jupyter_notebook:
  # ...

prompt

You can control whether a converted .html includes In [N]/Out[N] prompts or not by prompt:

yaml
jupyter_notebook:
  prompt: true

The default value is true. It means that In [N]/Out[N] are shown.

You can remove them by using false:

yaml
jupyter_notebook:
  prompt: false

input

Similar to how prompt works, you can also control whether a converted .html includes code inputs or not by using input:

yaml
jupyter_notebook:
  input: true

The default value is true. It means that input code blocks are shown.

You can remove them by using false:

yaml
jupyter_notebook:
  input: false

Authors

  • Kouhei Sutou \

License

Apache License 2.0. See doc/text/apache-2.0.txt and NOTICE.txt for details.

(Kouhei Sutou has a right to change the license including contributed patches.)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言