All Projects → goerz → ipynb_notedown.vim

goerz / ipynb_notedown.vim

Licence: MIT license
vim plugin for editing jupyter notebook (ipynb) files through notedown

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to ipynb notedown.vim

Jupytext.vim
Vim plugin for editing Jupyter ipynb files via jupytext
Stars: ✭ 142 (+425.93%)
Mutual labels:  vim-plugins, ipynb
vim-modusline
🌈 Mode-specific statusline colors
Stars: ✭ 39 (+44.44%)
Mutual labels:  vim-plugins
Vim Packager
Vim plugin manager that utilizes "jobs" and "pack" features.
Stars: ✭ 197 (+629.63%)
Mutual labels:  vim-plugins
Vim Arpeggio
Vim plugin: Mappings for simultaneously pressed keys
Stars: ✭ 216 (+700%)
Mutual labels:  vim-plugins
Bullets.vim
🔫 Bullets.vim is a Vim/NeoVim plugin for automated bullet lists.
Stars: ✭ 199 (+637.04%)
Mutual labels:  vim-plugins
vim-searchant
searchant.vim is obsoleted by vim-searchhi
Stars: ✭ 55 (+103.7%)
Mutual labels:  vim-plugins
Vim Arduino
Vim plugin for compiling and uploading arduino sketches
Stars: ✭ 187 (+592.59%)
Mutual labels:  vim-plugins
notebooks
This repo contains notebooks that explaining some cool stuff we learn every now and then...
Stars: ✭ 19 (-29.63%)
Mutual labels:  ipynb
notebooks
my-deeplearning-practice-notebooks
Stars: ✭ 29 (+7.41%)
Mutual labels:  ipynb
Is.vim
incremental search improved - successor of incsearch.vim
Stars: ✭ 209 (+674.07%)
Mutual labels:  vim-plugins
Vim Racket
vim bundle for Racket
Stars: ✭ 207 (+666.67%)
Mutual labels:  vim-plugins
Vim Go
Go development plugin for Vim
Stars: ✭ 14,085 (+52066.67%)
Mutual labels:  vim-plugins
Simple-Sentence-Similarity
Exploring the simple sentence similarity measurements using word embeddings
Stars: ✭ 99 (+266.67%)
Mutual labels:  ipynb
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (+629.63%)
Mutual labels:  vim-plugins
lh-tags
ctags base updating, and browsing from vim
Stars: ✭ 25 (-7.41%)
Mutual labels:  vim-plugins
Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (+603.7%)
Mutual labels:  vim-plugins
Vim Anyfold
Language agnostic vim plugin for folding and motion based on indentation.
Stars: ✭ 208 (+670.37%)
Mutual labels:  vim-plugins
Nerdtree
A tree explorer plugin for vim.
Stars: ✭ 16,380 (+60566.67%)
Mutual labels:  vim-plugins
vim-sass-colors
sass/scss/less/css color literal and color variable highlighting (works with imports)
Stars: ✭ 24 (-11.11%)
Mutual labels:  vim-plugins
tmux-zsh-vim-titles
Unified terminal titles in tmux, zsh, and vim/nvim
Stars: ✭ 28 (+3.7%)
Mutual labels:  vim-plugins

ipynb_notedown.vim

Vim/Neovim plugin for editing Jupyter notebook (ipynb) files through notedown.

http://www.vim.org/scripts/script.php?script_id=5506

This plugin is obsolete: use jupytext.vim instead

Installation

  1. Copy the ipynb_notedown.vim script to your vim plugin directory (e.g. $HOME/.vim/plugin). Refer to :help add-plugin, :help add-global-plugin and :help runtimepath for more details about Vim plugins.
  2. Restart Vim.

Usage

When you open a Jupyter Notebook (*.ipynb) file, it is automatically converted from json to markdown through the notedown utility. Upon saving the file, the content is converted back to the json notebook format.

The purpose of this plugin is to allow editing notebooks directly in vim. The conversion json → markdown → json is relatively lossless, although some of the restrictions of the notedown utility apply. In particular, notebook and cell metadata are lost, and consecutive markdown cells are merged into one cell.

Configuration

The following settings in your ~/.vimrc may be used to configure the plugin:

  • g:notedown_enable=1

    You may disable the automatic conversion between the notebook json format and markdown (i.e., deactivate this plugin) by setting this to 0.

  • g:notedown_code_match='all'

    Value for the --match command line option of notedown. There are known problems with using the value 'strict', but 'fenced' may be a good alternative if you need code blocks in markdown.

jupytext.vim

The jupytext utility is an alternative to notedown that has considerably less shortcomings. In particular, it guarantees the roundtrip conversion ipynb → markdown → ipynb to be lossless (metadata is preserved, consecutive markdown cells are possible). This is achieved by the markdown file containing only the notebook inputs, and the conversion back to the notebook format using the data from the original notebook file for the outputs. The jupytext.vim plugin provides similar capabilities to ipynb_notedown.vim, but using jupytext instead of notedown by default. If you still want to use notedown over jupytext, e.g. because you need cell outputs to be contained in the markdown representation, you can still use the new jupytext.vim plugin, with the following custom configuration in your ~/.vimrc:

let g:jupytext_command = 'notedown'
let g:jupytext_fmt = 'markdown'
let g:jupytext_to_ipynb_opts = '--to=notebook'

Thus, jupytext.vim supersedes the ipynb_notedown.vim entirely, and should be used instead of it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].