Notebook for running bash/shell script
BashBook the way you would any normal notebook
- Open a file with the
.bashbook
extension - New File... /
Bash Notebook
- Command /
BashBook: Create new Bash Notebook
- Create new Bash Notebook
- Open notebook as markdown
- Open all outputs in new file
- Execute cell and select content
- Execute cell and clear content
- Execute and show output in below markdown cell
- Clear cell content and edit
- Copy cell output
- Open cell output in new file
Each notebook is running one continuous shell. This means that commands running in one cell will effect the others. Only one execution is allowed at the time and the rest is queued.
Interaction with running execution is possible in the output terminal. Finished executions are non-interactive.
- Resizes terminal height to fit content dynamically
- Resizes terminal width at end of execution. Only affects next execution.
Tries to set CWD in following order
- File directory
- Workspace directory
- User home directory
On a Ubuntu/Debian system you may get a Cannot open resource with notebook editor
error if vscode is installed as a flatpack(Ubuntu Software). For BashBook to work correctly vscode needs to be installed with apt install
npm install
# Run after each install
npm run rebuild
npm run compile
# Build `.vsix` file
npm run package
Due to node-pty we have platform specific dependencies
node-pty dependencies
- node-pty
- xterm.js
If you get an error NODE_MODULE_VERSION
mismatch.
- Check the version of electron vscode is using.
Help => About => Electron
- Make sure you have the correct version of electron in
package.json
. List of electron versions is available here - Run
npm run rebuild