@datalayer/jupyter-docusaurus-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

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)
`}
  token='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
  serverHttpUrl='http://localhost:8686/api/jupyter'
  serverWsUrl='ws://localhost:8686/api/jupyter'
/>

⚖️ License

Copyright (c) 2022 Datalayer, Inc.

Released under the terms of the MIT license (see LICENSE).

Readme

Keywords

none

Package Sidebar

Install

npm i @datalayer/jupyter-docusaurus-plugin

Weekly Downloads

10

Version

0.1.0

License

MIT

Unpacked Size

20.8 kB

Total Files

13

Last publish

Collaborators

  • datalayer-eric
  • echarles