@datalayer/jupyter-docusaurus-plugin
v0.1.1
Published
Docusaurus Plugin for Jupyter
Downloads
258
Readme
🪐 🦕 Jupyter Plugin for Docusaurus
Docusaurus Plugin to create a Jupyter Cell in a Docusaurus site.
See an example in this repository.
Installation
yarn add @datalayer/jupyter-docusaurus-plugin
Modify your docusaurus.config.js
module.exports = {
...
+ plugins: ['@datalayer/jupyter-docusaurus-plugin'],
...
}
Usage
Add the following in any Markdown file.
import JupyterCell from '@theme/JupyterCell';
<JupyterCell
source={`print('Hello world')
for i in range(10):
print(i)
`}
jupyterServerUrl='http://localhost:8686/api/jupyter-server'
jupyterServerToken='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
/>
⚖️ License
Copyright (c) 2022 Datalayer, Inc.
Released under the terms of the MIT license (see LICENSE).