atom-ink icon indicating copy to clipboard operation
atom-ink copied to clipboard

Use Ink with python/ipython?

Open DrBones opened this issue 9 years ago • 1 comments

Hi,

I am really liking the possibilities of Ink and would love to use it with python (and maybe Matlab in the long run since the Matlab IDE...well, lacks VIM bindings). Do any documents exist with pointers on how to start to make Ink work with python like the atom-julia-client does?

Or would it be a better start to clone the julia-client? It just looks a little overwhelming to start off of.

Thanks in advance.

DrBones avatar Jan 29 '16 00:01 DrBones

It would be really great to see Ink and Python working together. If you want to get going with this, I think your best bet is probably to not worry at all about Ink itself; start out by getting some basic communication going between Python and Atom, e.g. Atom boots a Python process, Python connects to Atom over TCP, they send JSON messages back and forth. Then you can set up some basic eval, and dump the results into the console.

Once you can do that it's time to bring Ink in ;) The basics of it are that you need to construct a new ink.Result with a dom node and line numbers for the result to be associated with. There are examples of this in both julia-client and proto-repl, and over the next few months we'll be putting more developer docs together so that it's easier to get going with stuff like this.

MikeInnes avatar Feb 03 '16 11:02 MikeInnes