0.0.1-alpha.10 • Published 4 years ago

@bayesnote/cli v0.0.1-alpha.10

Weekly downloads
48
License
-
Repository
-
Last release
4 years ago

Bayesnote-cli

cd /path/to/Bayesnote/cli
yarn run build
yarn link
ls ~/.config/yarn/link
bayesnote-cli

Run notebook

The sample notebook JSON file is in the test folder.

makesure you have started the node application

bayesnote run <path/to/notebook/json/file>

example:

# run notebook without parameter
bayesnote run code-notebook.json

Run notebook with parameters

bayesnote run -p <parameter> -p <parameter> <path/to/notebook/json/file>

parameter is a key=value string

example:

# run notebook with parameters
bayesnote run -p "myList=[1,2,3]" -p "delay=0" parameter-notebook.json

Injected-parameter cell

  • Has parameter cell and no injected-parameter cell:
    • Add injected-parameter cell after the first parameter cell
  • Has parameter cell and has injected-parameter cell:
    • Replace the first injected-parameter cell
  • Has no parameter cell and has injected-parameter cell:
    • Replace the first injected-parameter cell
  • Has no parameter cell and no injected-parameter cell:
    • Add injected-parameter cell before the first cell