Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Datalayer

Become a Sponsor

🪐 🦕 Jupyter Plugin for Docusaurus

Docusaurus Plugin to create a Jupyter Cell in a Docusaurus site.

See an example in this repository.

Jupyter UI Slate

Installation

npm 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).