jupyter / terminado

Terminals served by tornado websockets
http://terminado.readthedocs.org/en/latest/
BSD 2-Clause "Simplified" License
368 stars 95 forks source link

Does it Work on Windows ? Otherwise any hope or alternative ? #7

Closed stonebig closed 9 years ago

takluyver commented 9 years ago

It does not. I plan to investigate whether it's possible to do something with git bash, but I'm not terribly optimistic. Pseudoterminals are a pretty low level feature of Unix systems, and I don't know of anything equivalent in Windows.

takluyver commented 9 years ago

Actually, it looks like it may be possible simply by piping text to and from git bash. There will probably be some limitations.

stonebig commented 9 years ago

Any incremental improvement would be nice for Windows users. Maybe should you target only python3.3+ if it can help reaching a solution.

takluyver commented 9 years ago

I'm working on it. The limitations will probably be things like terminal resizing not working. If it works, it should be straightforward to make it work on the same versions of Python that terminado already supports (2.7, 3.3+).

takluyver commented 9 years ago

There's a branch here with git bash very roughly working.

screenshot from 2015-02-24 16 46 50

Problems I'm aware of:

takluyver commented 9 years ago

This library and exe might be useful if someone has the will to take this further: https://github.com/rprichard/winpty

stonebig commented 9 years ago

winpty is not on pypi. I don't find where you or MinRK already said that https://pypi.python.org/pypi/prompt_toolkit was not a good solution either. ==> Droping the request for 'was a disproportionate effort in 2015 to get it right'.

takluyver commented 9 years ago

winpty is not a Python package, it's a C++ thing. I'm not entirely sure how we would use it, but it appears to do what we'd want. The setup instructions are pretty complex, though, so I haven't pursued it.

prompt_toolkit is solving a different problem from this.

stonebig commented 8 years ago

a glimmer of hope ?

takluyver commented 8 years ago

Sorry, I don't plan to take this any further. I don't think I can make it reliable enough to be worth supporting windows - I don't want to deal with a steady stream of bug reports I can't resolve.

stonebig commented 8 years ago

no problem, better that than a painfull death

takluyver commented 8 years ago

Still no windows support. I think it can be installed OK, so it's not a problem for the notebook to specify it as a dependency on all platforms. But it can't be imported on windows.

stonebig commented 8 years ago

someone just told me some problems may go away for pymux if I use cygwin. Would it also improve situation for terminado ?

takluyver commented 8 years ago

I don't know; feel free to experiment, but as we discussed in another thread, we don't generally recommend using Cygwin, and I don't intend to support it for Terminado. We find that it's better to use a full Unix environment (such as your favourite Linux distro) rather than trying to graft a Unix environment onto Windows.

stonebig commented 8 years ago

lonely feeling ... https://youtu.be/fhv-4QLGsso?t=1211