Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal unavailable in Jupyter Notebook #172

Closed
mishrasubhajit opened this issue Jun 25, 2015 · 18 comments
Closed

Terminal unavailable in Jupyter Notebook #172

mishrasubhajit opened this issue Jun 25, 2015 · 18 comments

Comments

@mishrasubhajit
Copy link

Hi,
I am running Jupyter in Chrome browser on Windows 8.1PC. I can't open a terminal in the notebook. Is it possible to open a terminal in notebook on Windows? If possible, please help.

@rgbkrk
Copy link
Member

rgbkrk commented Jun 25, 2015

I'm afraid not. The terminal is only supported on *nix machines (Linux, OS X, FreeBSD).

Update: commentors below suggested using winpty (conda install winpty). This is tested to work on at least Windows 10.

@ellisonbg
Copy link
Contributor

This is because Windows does not have TTY based terminal support.

On Thu, Jun 25, 2015 at 2:06 PM, Kyle Kelley notifications@github.com
wrote:

I'm afraid not. The terminal is only supported on *nix machines (Linux, OS
X, FreeBSD).


Reply to this email directly or view it on GitHub
#172 (comment).

Brian E. Granger
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com

@mishrasubhajit
Copy link
Author

Okay, thanks.

@AlbinB
Copy link

AlbinB commented Nov 15, 2015

is it possible to get it working wiht PuTTY?

@ph03
Copy link

ph03 commented Nov 18, 2015

Or cygwin?

@minrk minrk added this to the no action milestone Dec 14, 2015
@michaelsbradleyjr
Copy link

winpty might be a viable option, as well.

@takluyver
Copy link
Member

We've looked at winpty. It might do what's necessary, but take a look at the instructions to build it - "Winpty requires two g++ toolchains...". We definitely don't want to support or recommend something that complex.

I think the best hope for this is that apparently Microsoft put an ssh server for powershell into Windows 10. I'm not exactly sure how that works, but if it's robust, we might be able to use it. Has anyone tested that out? What do you have to do to get it to work? Can you e.g. run the Python shell inside it?

@Zhang-O
Copy link

Zhang-O commented Jun 25, 2016

I have tried a lot of ways including installing lots of modules ,and all failed.
oh,I want a pc of macos .

@moonclearner
Copy link

installed terminado can't fix

@Zhang-O
Copy link

Zhang-O commented Oct 25, 2016

now i suggest you to install anaconda,not terminado.it installs with a lot of pakages which will save you much time and miss a lot of pakage error.

@glyphx
Copy link

glyphx commented Jan 17, 2017

I got it to work on windows 10, mingw, visual studio 2015.
image

@timjavins
Copy link

timjavins commented Jul 3, 2017

Microsoft put a bash terminal in Windows 10 (or rather, an easy way to install Ubuntu inside Windows 10).

  1. Turn on Developer Mode
    image

  2. Go to the "Turn Windows features on or off" settings and turn on "Windows Subsystem for Linux (Beta)"
    image

  3. Reboot

  4. Run Command Prompt as Admin or PowerShell as Admin

  5. Type bash and hit [enter], which will install Ubuntu
    image
    image

  6. Now, whenever you're inside Windows terminal/PowerShell/whatever, you can type bash to switch
    image

Proof:
image

I provide this as a resource for anyone who is trying to get a Jupyter terminal to run "inside Windows". I'm now going to see if I can get my Jupyter terminal to become available and perhaps (eventually) get Anaconda for Windows to launch it. It is open source, after all. ;)

@takluyver
Copy link
Member

I think that if you install Anaconda for Linux inside the Ubuntu environment and launch Jupyter notebook from there, terminals should work.

We've had a couple of reports of issues running Jupyter inside the Ubuntu-on-Windows environment. They may be resolved now; I haven't kept track of them.

@fenderrex
Copy link

so still no GPU support is that right? ill try tty with winpty. so many dependencys

@takluyver
Copy link
Member

@andfoy was doing some work on a Windows backend at https://github.com/jupyter/win-tornado-terminals . I don't know how far along that is.

@Oaklight
Copy link

Oaklight commented Nov 27, 2018

Since now in Windows10 there is OpenSSH built-in, if it is possible to make the terminal work?

@swap2ag
Copy link

swap2ag commented Jun 7, 2020

Installing winpty package fixed the problem for me in windows 10. Install it by-
conda install winpty

It opens windows powershell when terminal is opened as shown in the figure below-
jupyter terminal for windows 10

@shoukewei
Copy link

shoukewei commented Feb 27, 2021

I soved this problem and made a video Sove the Unavailable Terminal Problem of Jupyter Notebook

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests