https://github.com/meain/ipyvim
Simple one way ipython interface for vim
https://github.com/meain/ipyvim
ipython-notebook vim
Last synced: about 1 year ago
JSON representation
Simple one way ipython interface for vim
- Host: GitHub
- URL: https://github.com/meain/ipyvim
- Owner: meain
- Created: 2017-04-15T05:27:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-15T11:04:21.000Z (about 9 years ago)
- Last Synced: 2025-02-09T00:18:12.509Z (over 1 year ago)
- Topics: ipython-notebook, vim
- Language: Vim script
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ipyvim
A simple plugin that allows for one way communication from vim to a ipython instance in a tmux window.

## Setup
### Install this plugin using your favorite plugin manager
I personally use [vim-plug](https://github.com/junegunn/vim-plug)
```
Plug 'meain/ipyvim'
```
### Prepare the environment
Well I should have automated this but I am kinda lazy
#### So, what you have to do is:
Use tmux to open up a session named ipython. You can use the following command:
```sh
tmux new-session -s ipython
```
Now start ipython in the first window and first pane (the one you get when you create a new session)
Just type:
```sh
ipython
```
**And you are good to go.**
## Usage
I have set up some default bindings for `ipyvim`.
In normal mode you can use `i` to send the current line to ipython.
In visual mode use `i` to send the visual selection to ipython
The functions used are (use it for remapping):
* `ExcecIpython` for normal mode
* `ExcecIpythonVisual` for visual mode
## TODO
* Send code directly to ipython kernel than using tmux