[IPython-dev] Public-domain browser terminal interface

William Stein wstein at gmail.com
Tue Jul 8 16:26:37 EDT 2014


On Tue, Jul 8, 2014 at 1:16 PM, Thomas Kluyver <takowl at gmail.com> wrote:
> The terminal-in-the-browser libraries we've previously looked at
> (shell-in-a-box and GateOne) are GPL/AGPL licensed, which made us very wary
> of doing anything with them. I've just found ajaxterm, which is in the

What about term.js?  It's MIT licensed (partly due to me asking
nicely), and is what many online IDE projects (including
SageMathCloud) use:

   https://github.com/chjj/term.js/

Maybe it isn't an option for you because the backend is Node.js
instead of Python.  I just wanted to double check, just in case.

Regarding term.js -- I've written code for theming term.js with color
schemes, added a scrollbar, etc..  I'm willing to share it, and other
changes I've made to term.js, but right now I don't want to spend time
doing so, beyond handing a pile of code to somebody if there is
interest.   You can try term.js by just creating a terminal in
SageMathCloud.  Also, be sure to try changing terminal settings under
account settings.

> public domain, so we could use it freely. It doesn't look very actively
> maintained, but the server side is about 600 lines of Python, so we could
> easily understand it and fix problems as we encounter them:
>
> https://github.com/antonylesuisse/qweb/blob/master/ajaxterm/ajaxterm.py

I have the strong impression -- starting with the name and timeframe
-- that ajaxterm doesn't use websockets.  It's basically from before
the modern era of websockets.  So if you use it, you'll have to
rewrite it to use websockets, since websockets are a massive
improvement over AJAX.

 -- William

>
> This came up in a talk about GraphTerm, which is an interesting project
> doing some of the same things we're doing. It includes inline display of
> graphical output, and can load and save our notebooks - it has a concept of
> a 'progressively fillable notebook', which contains hidden solutions which
> are visible to students after they submit their own solution.
>
> http://code.mindmeldr.com/graphterm/
>
> Thomas
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org



More information about the IPython-dev mailing list