Just implement the following clap application, and then execute <BIN> install
to get a jupyter kernel of the corresponding language.
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
pub struct JupyterApplication {
#[arg(short, long, value_name = "FILE")]
config: Option<PathBuf>,
#[arg(short, long, action = clap::ArgAction::Count)]
debug: u8,
#[command(subcommand)]
command: JupyterCommands,
}
#[derive(Subcommand)]
enum JupyterCommands {
Open(Box<OpenAction>),
Start(Box<StartAction>),
Install(Box<InstallAction>),
Uninstall(Box<UninstallAction>),
}
- See more usages in source code: jupyter-calculator
- See more usages in notebook: jupyter-calculator.ipynb
Supports jupyter lab and vscode
- Can't render math formula in vscode
- Can't send debug info reply to DAP client
- Document: Jupyter Kernel Protocol
- Clap, Used to build command line interface
- Especially Thanks to EVCXR for
ZmdMessage
decode