Code Monkey home page Code Monkey logo

jupyter_ascending.vim's Introduction

jupyter_ascending.vim

Vim plugin to interact with jupyter_ascending Currently only supports Jupyter Notebook.

Jupyter Ascending

Installation

First, you must install jupyter_ascending in the python envirenment you're working in. For example:

$ pyenv activate my_notebook_env
$ pip install jupyter_ascending

It is possible you won't need to run the following commands on newer version of jupyter notebook, but it's recommended that you do anyway, because installing extensions is hard.

$ jupyter nbextension install --py --sys-prefix jupyter_ascending
$ jupyter nbextension     enable jupyter_ascending --sys-prefix --py
$ jupyter serverextension enable jupyter_ascending --sys-prefix --py

You can confirm it's installed by checking:

$ jupyter nbextension     list
$ jupyter serverextension list

Then install this plugin using the vim plugin manager you like. For example:

Plug 'untitled-ai/jupyter_ascending.vim'

Usage

  1. First create a Jupyter notebook notebook_name.sync.ipynb.
  2. Then generate a notebook_name.sync.py file using jupytext with "percent format". (see Paired notebooks in jupytext)
  3. Edit .sync.py file in vim and Jupyter Ascending will update the .sync.ipynb every time .sync.py is saved.
  4. Send commands to Jupyter notebook via the following mappings:

Execute cell

nmap <space><space>x <Plug>JupyterExecute

Execute all cells

nmap <space><space>X <Plug>JupyterExecuteAll

Use # %% to separate cells.

Settings

See doc/jupyter_ascending.txt for more information.

jupyter_ascending.vim's People

Contributors

chinnkarahoi avatar joshalbrecht avatar juanmarinero avatar quantum-booty avatar tjdevries avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.