There is a new patch for the Jupyter QtConsole that improves the handling of input initiated from other clients, such as text editors. This video shows off how, with the current master branch of QtConsole, Vim can work together with QtConsole.
https://github.com/jupyter/qtconsole
Here are some short instructions on how to make this work:
https://blogs.aalto.fi/marijn/2017/11...