Skip to content

oraichain/notebookjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@oraichain/notebookjs

Notebook.js parses raw Jupyter/IPython notebooks, and lets you render them as HTML. See a working demo here.

Usage

import nb from './notebook';

nb.updateDepedencies({
  'ts-results': require('ts-results'),
  bech32: require('bech32'),
  '@cosmjs/stargate': require('@cosmjs/stargate'),
  '@cosmjs/cosmwasm-stargate': require('@cosmjs/cosmwasm-stargate'),
  '@oraichain/cw-simulate': require('@oraichain/cw-simulate'),
  '@oraichain/cosmwasm-vm-zk': require('@oraichain/cosmwasm-vm-zk'),
  '@oraichain/common-contracts-sdk': require('@oraichain/common-contracts-sdk'),
  '@oraichain/oraidex-contracts-sdk': require('@oraichain/oraidex-contracts-sdk'),
  '@oraichain/dao-contracts-sdk': require('@oraichain/dao-contracts-sdk')
});

// fetch notebook
const notebook = await nb.fetch('notebook.ipynb');
document.body.appendChild(notebook.render());

// run all notebook
await nb.runAll();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published