What you can do is set up a custom environment (easy) and create an interactive execution
(not so easy).
First, you'll want to look at
- specifically the
class - as this is fairly similar to what you'll need to do to redirect stdin/out/err. You'll want your own file like this that can launch and/or connect to an instance of your
To register your new backend so that it appears in VS (in the Interactive Options, which currently has "IPython" and "IPython w/o pylab" modes), you'll need to create
and put in string values for
is the name of the Python backend class - for IPython mode, this is
, so I'd expect yours to be similar. I don't think it matters where the Python file is located as long as it's importable, but putting it in our
alongside the others is.
You'll want a custom environment inside PTVS so that you can set the library path correctly, as this will help with IntelliSense, but there are also
functions on the backend so you can generate IntelliSense "live". You can modify Interactive Options for your environment to use your own backend, and then you'll get all the rest of the PTVS
As far as I know, you're the first person outside our group to attempt this, so we'll be very interested in how it goes. Feel free to ask for more help when you run into trouble. :)