[QtConsole] List of keyboard shortcuts?

706 views
Skip to first unread message

FSund

unread,
Feb 18, 2016, 2:16:00 AM2/18/16
to Project Jupyter
I've bee looking for documentation of the keyboard shortcuts available in Jupyter QtConsole, but have been unable to find any documentation.
Does this exist? 
Should it exist?
Where in the source code could I look to figure out which shortcuts are available?

Also, is it possible to customize the keyboard shortcuts?

Thomas Kluyver

unread,
Feb 18, 2016, 6:29:59 AM2/18/16
to Project Jupyter
On 18 February 2016 at 07:16, FSund <filip...@gmail.com> wrote:
I've bee looking for documentation of the keyboard shortcuts available in Jupyter QtConsole, but have been unable to find any documentation.
Does this exist? 
Should it exist?

In the released version of the Qt console, you can find this in the information you get from the %guiref magic. In future versions, this will be an entry in the help menu instead.

This should probably be in the Sphinx docs as well, if you'd like to make a PR.

I don't think the Qt console has a way to customise keyboard shortcuts.

Thomas

FSund

unread,
Feb 18, 2016, 8:19:43 AM2/18/16
to Project Jupyter
The %guiref magic seems to be no longer available in IPython 4.0.1. When I try to run the command on my Anaconda installation I get an error:

In [1]: %guiref

ERROR: Line magic function `%guiref` not found.


I've previously reported this issue on Github: https://github.com/jupyter/qtconsole/issues/78

The command is listed when I start QtConsole, but it doesn't actually work.

Jupyter QtConsole 4.1.1

Python 3.5.1 |Anaconda 2.4.1 (64-bit)| (default, Dec 7 2015, 15:00:12) [MSC v.1900 64 bit (AMD64)]

Type "copyright", "credits" or "license" for more information.


IPython 4.0.1 -- An enhanced Interactive Python.

? -> Introduction and overview of IPython's features.

%quickref -> Quick reference.

help -> Python's own help system.

object? -> Details about 'object', use 'object??' for extra details.

%guiref -> A brief reference about the graphical user interface.


Filip

Carlos Córdoba

unread,
Feb 18, 2016, 8:48:45 AM2/18/16
to jup...@googlegroups.com
Hi Filip,

It's true, %guiref is broken and it will be removed since Qtconsole 4.2. This version will have instead (as Thomas said) an entry in the help menu which lists all available shortcuts for QtConsole (plus other valuable information).


Cheers,
Carlos

El 18/02/16 a las 08:19, FSund escribió:
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c6dd3dfb-ebf0-4351-9491-1637f81ad9f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Filip Sund

unread,
Feb 18, 2016, 8:56:45 AM2/18/16
to jup...@googlegroups.com
That is good to hear.

But in the meantime, what are the available hotkeys in QtConsole?

Filip

You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/0hyq6CCdTNA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Carlos Córdoba

unread,
Feb 18, 2016, 8:58:45 AM2/18/16
to jup...@googlegroups.com
They are mentioned here:

https://github.com/jupyter/qtconsole/pull/98/files#diff-4c1407fdef40bce830ba80e734acd18f


Cheers,
Carlos

El 18/02/16 a las 08:56, Filip Sund escribió:

Carol Willing

unread,
Feb 18, 2016, 9:40:15 AM2/18/16
to jup...@googlegroups.com
Filip,

Here’s a snippet from the Pull request that Carlos mentions. Please
ignore the extra characters due to reStructuredText.

Hope this helps.

Warmly,

Carol

——-

Key bindings
============
The Jupyter QtConsole supports most of the basic Emacs line-oriented
keybindings,
in addition to some of its own.
The keybinding prefixes mean:
- ``C``: Control
- ``S``: Shift
- ``M``: Meta (typically the Alt key)
The keybindings themselves are:
- ``Enter``: insert new line (may cause execution, see above).
- ``C-Enter``: *force* new line, *never* causes execution.
- ``S-Enter``: *force* execution regardless of where cursor is, no
newline added.
- ``Up``: step backwards through the history.
- ``Down``: step forwards through the history.
- ``S-Up``: search backwards through the history (like ``C-r`` in bash).
- ``S-Down``: search forwards through the history.
- ``C-c``: copy highlighted text to clipboard (prompts are automatically
stripped).
- ``C-S-c``: copy highlighted text to clipboard (prompts are not
stripped).
- ``C-v``: paste text from clipboard.
- ``C-z``: undo (retrieves lost text if you move out of a cell with the
arrows).
- ``C-S-z``: redo.
- ``C-o``: move to 'other' area, between pager and terminal.
- ``C-l``: clear terminal.
- ``C-a``: go to beginning of line.
- ``C-e``: go to end of line.
- ``C-u``: kill from cursor to the begining of the line.
- ``C-k``: kill from cursor to the end of the line.
- ``C-y``: yank (paste)
- ``C-p``: previous line (like up arrow)
- ``C-n``: next line (like down arrow)
- ``C-f``: forward (like right arrow)
- ``C-b``: back (like left arrow)
- ``C-d``: delete next character, or exits if input is empty
- ``M-<``: move to the beginning of the input region.
- ``M->``: move to the end of the input region.
- ``M-d``: delete next word.
- ``M-Backspace``: delete previous word.
- ``C-.``: force a kernel restart (a confirmation dialog appears).
- ``C-+``: increase font size.
- ``C--``: decrease font size.
- ``C-M-Space``: toggle full screen. (Command-Control-Space on Mac OS X)


On 18 Feb 2016, at 5:58, Carlos Córdoba wrote:

> They are mentioned here:
>
> https://github.com/jupyter/qtconsole/pull/98/files#diff-4c1407fdef40bce830ba80e734acd18f
>
>
> Cheers,
> Carlos
>
> El 18/02/16 a las 08:56, Filip Sund escribió:
>> That is good to hear.
>>
>> But in the meantime, what /are/ the available hotkeys in QtConsole?
>>
>> Filip
>>
>> tor. 18. feb. 2016 kl. 14.48 skrev Carlos Córdoba
>> <ccord...@gmail.com <mailto:ccord...@gmail.com>>:
>>> <mailto:jupyter+u...@googlegroups.com>.
>>>
>>> To post to this group, send email to jup...@googlegroups.com
>>> <mailto:jup...@googlegroups.com>.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jupyter/c6dd3dfb-ebf0-4351-9491-1637f81ad9f4%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> -- You received this message because you are subscribed to a
>> topic in
>> the Google Groups "Project Jupyter" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jupyter/0hyq6CCdTNA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email
>> to jupyter+u...@googlegroups.com
>> <mailto:jupyter+u...@googlegroups.com>.
>> To post to this group, send email to jup...@googlegroups.com
>> <mailto:jup...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/56C5CBB5.8000203%40gmail.com
>> <https://groups.google.com/d/msgid/jupyter/56C5CBB5.8000203%40gmail.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to jupyter+u...@googlegroups.com
>> <mailto:jupyter+u...@googlegroups.com>.
>> To post to this group, send email to jup...@googlegroups.com
>> <mailto:jup...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/CAFuLvMcYxjYAgcPYDWc7Sxq25NfY6FcSLKXv%2Bo1e6wMYDY7TaA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jupyter/CAFuLvMcYxjYAgcPYDWc7Sxq25NfY6FcSLKXv%2Bo1e6wMYDY7TaA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jupyter+u...@googlegroups.com.
> To post to this group, send email to jup...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/56C5CE10.1090802%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.


Carol Willing
Research Software Engineer, Project Jupyter @ Cal Poly
Director, Python Software Foundation

FSund

unread,
Feb 19, 2016, 2:31:43 AM2/19/16
to Project Jupyter
Thanks to both of you, this is exactly what I needed.

Looking forward to another great release!


Filip
Reply all
Reply to author
Forward
0 new messages