在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:vlunot/nb2hugo开源软件地址:https://github.com/vlunot/nb2hugo开源编程语言:Python 100.0%开源软件介绍:nb2hugonb2hugo is a simple way to convert a Jupyter notebook to a Hugo markdown page. MotivationJupyter Notebook is a great way to create a single document that contains code that can be executed, formatted text to provide detailed explanations, as well as figures. Hugo is a simple yet very powerful static site generator. While a few solutions to convert a Jupyter notebook to a Hugo markdown with front matter already exist, nb2hugo put an emphasis on getting a result that looks similar to the original Jupyter notebook. InstallationUsing pip:
UsageIn your Jupyter notebook, start by using one or more markdown cells that will contain the front matter information. Next, add an html comment as a front matter divider: everything in the notebook before the End Of Front Matter divider
All content after the Once you have finished writing your notebook, you can convert it using the following command: nb2hugo notebook_file --site-dir hugo_website_directory --section content_section A workflow for easily publishing notebooksA demo site shows how to combine nb2hugo, Hugo and Netlify to easily blog with Jupyter notebooks. The associated Git repository is available at https://github.com/vlunot/nb2hugo-demo. AuthorVincent Lunot - Initial work. LicenseThis project is licensed under the MIT License - see the LICENSE.txt file for details. Acknowledgementsnb2hugo is based on nbconvert. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论