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

Tab and up arrow functionality #29

Open
ambarb opened this issue Mar 10, 2016 · 8 comments
Open

Tab and up arrow functionality #29

ambarb opened this issue Mar 10, 2016 · 8 comments

Comments

@ambarb
Copy link

ambarb commented Mar 10, 2016

In our implementation, tab and up arrow do not function as expected. It would be great if the tab key completed commands or file paths and if the up arrow allowed us to cycle through previous commands. CC @danielballan

@takluyver
Copy link
Member

Tab and up arrow both work for me in the demo. Do you see the issue in the demo, or is it related to whatever you're integrating it into?

@cailiang9
Copy link
Contributor

the error occurs when using vim. it was integrated in jupyter notebook.
the error output on server side:

Accept-Encoding': 'gzip, deflate, sdch', 'Pragma': 'no-cache', 'Upgrade': 'websocket', 'Sec-Websocket-Key': 'z1Xy7BENPtx14icF79USAg
==', 'Host': ':9000'})                                                                                  
    Traceback (most recent call last):                                                                                             
      File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 1401, in _stack_context_handle_exception                  
        raise_exc_info((type, value, traceback))                                                                                   
      File "<string>", line 3, in raise_exc_info                                                                                   
      File "/usr/local/lib/python3.4/dist-packages/tornado/stack_context.py", line 314, in wrapped                                 
        ret = fn(*args, **kwargs)                                                                                                  
      File "/usr/local/lib/python3.4/dist-packages/terminado/management.py", line 186, in pty_read                                 
        s = ptywclients.ptyproc.read(65536)                                                                                        
      File "/usr/local/lib/python3.4/dist-packages/ptyprocess/ptyprocess.py", line 804, in read                                    
        return self.decoder.decode(b, final=False)                                                                                 
      File "/usr/lib/python3.4/codecs.py", line 319, in decode                                                                     
        (result, consumed) = self._buffer_decode(data, self.errors, final)                                                         
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 29: invalid start byte                                    

@takluyver
Copy link
Member

When pressing tab/up arrow? Or is that unrelated to the problem in this issue? Is it readily replicable?

@cailiang9
Copy link
Contributor

yes. all arrow keys do not function.

@danielballan
Copy link

The original report from @ambarb relates to the JupyterHub deployment at Brookhaven National Lab. Maybe this is a problem with terminado + JupyterHub, or maybe it is a problem with our particular deployment. I'll look into it and provide more details if the issue seems to be with terminado.

I'm not sure whether or not it is related to the vim issue reported by @cailiang9, who AFAIK is working in a different deployment. @cailiang9, can you provide more detail about what you mean by "do not function"? Do you see unprintable characters when you press arrow keys in the bash terminal?

@cailiang9
Copy link
Contributor

In vim of terminal, when I press arrow keys, the arrow can not move and the backend server prints the above exceptions.

@takluyver
Copy link
Member

I am able to use arrow keys and tab in vim on my system (Linux, Firefox, British keyboard).

@eldos-dl
Copy link

eldos-dl commented Jul 7, 2020

@takluyver I am still facing this issue. Arrow keys are not working with vim in insert mode when I'm trying to edit files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants