About: IPython integration   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

IPython and Vim make for a great IDE. The following shortcuts can help to make it even better. To also avoid having to enter a test command in IPython, I use konsole and dcop to send the command to IPython automatically. In the following, ' is mapped to run the command 'r' in IPython. First, start IPython as follows: konsole --script ipython Next, add the following mapping to vimrc: nnoremap ' :wa:!dcop konsole-`pidof konsole` session-1 sendSession r screen -S blah ipython Now to send a command to the 'blah' screen: nnoremap ' :wa:!screen -x blah -X stuff $'r '

AttributesValues
rdfs:label
  • IPython integration
rdfs:comment
  • IPython and Vim make for a great IDE. The following shortcuts can help to make it even better. To also avoid having to enter a test command in IPython, I use konsole and dcop to send the command to IPython automatically. In the following, ' is mapped to run the command 'r' in IPython. First, start IPython as follows: konsole --script ipython Next, add the following mapping to vimrc: nnoremap ' :wa:!dcop konsole-`pidof konsole` session-1 sendSession r screen -S blah ipython Now to send a command to the 'blah' screen: nnoremap ' :wa:!screen -x blah -X stuff $'r '
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1549(xsd:integer)
Category
  • Python
Author
  • Srepmub
Subpage
  • /200804
Complexity
  • basic
Created
  • 2008(xsd:integer)
ID
  • 1551(xsd:integer)
NEXT
  • 1552(xsd:integer)
abstract
  • IPython and Vim make for a great IDE. The following shortcuts can help to make it even better. To also avoid having to enter a test command in IPython, I use konsole and dcop to send the command to IPython automatically. In the following, ' is mapped to run the command 'r' in IPython. First, start IPython as follows: konsole --script ipython Next, add the following mapping to vimrc: nnoremap ' :wa:!dcop konsole-`pidof konsole` session-1 sendSession r I wanted to make this work in gnome-terminal as well, but couldn't figure out how to do this with DBUS. So here's a nice trick to make it work in any terminal that supports the 'screen' utility. First, create a 'virtual' screen named 'blah': screen -S blah ipython Now to send a command to the 'blah' screen: nnoremap ' :wa:!screen -x blah -X stuff $'r ' To start screen with gnome-terminal: gnome-terminal -e 'screen -S blah' Please feel free to add more tips for integration with IPython below. I used the following script: " maps ' to save and run the current buffer in the ipython session nnoremap ' :wa:!screen -x ipython_vim -X stuff $'\%run "%:p" ' " opens a new konsole window with ipython running in screen com OpenIPython :!konsole -e screen -S ipython_vim ipython
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software