vim plugin for viewing, editting jupyter notebook, running code cells and converting to markdown, pdf.
- vim with python3 integrated
- vim-pandoc and vim-pandoc-syntax plugin for converting .ipynb files and grammar support
- Open and files with corresponding backend kernel and convert it into markdown-like text.
- Different kernels support (python and matlab for now).
- Syntax highlighting support through vim-pandoc-syntax.
- Create markdown and code cells.
- Run codes in code cells.
- Convert .ipynb files into pandoc, markdown, html, pdf, or corresponding script files
#%%<MardownCellName>
```<KernelLanguage> <CellName>
some codes
```
After creating a new .ipynb file, a kernel must be explicitly started using
:StartKernel <kernelname>
:StartKernel <kernelname> Start a kernel
:ConnectToKernel <jsonfile> Connect to an existing kernel specified by <jsonfile>
:ConnectToPreviousKernel Connect to a most recented created kernel
:KernelShutdown Shutdown current kernel
:KernelRestart Restart current kernel
For running current code cell command, code can only be run when cursor is inside a code cell.
<space> Run current line
<localleader>a Abort Run line buffer
<localleader>cc Run current cell
<localleader>cd Run current cell and go to nex cell
<localleader>cn <n> Run number n cell
<localleader>r Run all code cells
<localleader>p: print variable under cursor
<localleader>pn <var>: print variable <var>
<localleader>h: get help under cursor
<localleader>hn <name>: get help for <name>
:ToPandoc
:ToHtml
:ToMd
:ToPdf
:ToCode
:ClearAll Clear all output from code cells.
let g:ipynb_convert_on_start=0
This is a primary plugin and still under developing. Basic functionalities are working with potential bugs.