ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Jupyter Lab Keyboard Setting Customization
    파이썬 2020. 8. 18. 11:07
    • Hide Cell Output: O
    • Show Cell Output: O, O
    • Hide All Cell Output: Ctrl + [
    • Show All Cell Output: Ctrl + ]
    • Hide All Cell Code: Ctrl + L
    • Show All Cell Code: Ctrl + ;
    • Restart Kernel and Run All: Ctrl + '
    • Restart Kernel and Clear All: Ctrl + .

    아래의 내용을 Jupyter Lab → Settings → Advanced Settings Editor →Keyboard Shortcuts → User Preferences에 붙여 넣는다. 그러면 위의 8가지 기능에 대하여 단축키를 사용할 수 있다.

    {
        // Keyboard Shortcuts
        // @jupyterlab/shortcuts-extension:shortcuts
        // Keyboard shortcut settings.
        // *****************************************

        // List of Commands (followed by shortcuts)
        // __internal:context-menu-info
        // apputils:activate-command-palette
        // apputils:print
        // completer:invoke
        // completer:select
        // tooltip:dismiss
        // launcher:create
        // editmenu:undo
        // editmenu:redo
        // editmenu:clear-current
        // editmenu:clear-all
        // editmenu:go-to-line
        // filemenu:close-and-cleanup
        // filemenu:create-console
        // filemenu:shutdown
        // filemenu:logout
        // kernelmenu:interrupt
        // kernelmenu:restart
        // kernelmenu:restart-and-clear
        // kernelmenu:change
        // kernelmenu:shutdown
        // kernelmenu:shutdownAll
        // runmenu:run
        // runmenu:run-all
        // runmenu:restart-and-run-all
        // viewmenu:line-numbering
        // viewmenu:match-brackets
        // viewmenu:word-wrap
        // tabsmenu:activate-by-id
        // tabsmenu:activate-previously-used-tab
        // editmenu:open
        // filemenu:open
        // kernelmenu:open
        // runmenu:open
        // viewmenu:open
        // settingsmenu:open
        // tabsmenu:open
        // helpmenu:open
        // mainmenu:open-first
        // documentsearch:start
        // documentsearch:highlightNext
        // documentsearch:highlightPrevious
        // application:activate-next-tab
        // application:activate-previous-tab
        // application:close
        // application:close-all
        // application:close-other-tabs
        // application:close-right-tabs
        // application:toggle-left-area
        // application:toggle-right-area
        // application:toggle-presentation-mode
        // application:set-mode
        // application:toggle-mode
        // router:tree
        // apputils:load-statedb
        // apputils:reset
        // apputils:reset-on-load
        // inspector:open
        // htmlviewer:trust-html
        // imageviewer:zoom-in
        // imageviewer:zoom-out
        // imageviewer:reset-image
        // imageviewer:rotate-clockwise
        // imageviewer:rotate-counterclockwise
        // imageviewer:flip-horizontal
        // imageviewer:flip-vertical
        // imageviewer:invert-colors
        // help:about
        // help:open
        // help:launch-classic-notebook
        // docmanager:clone
        // docmanager:rename
        // docmanager:show-in-file-browser
        // docmanager:delete-file
        // docmanager:new-untitled
        // docmanager:open
        // docmanager:open-browser-tab
        // docmanager:reload
        // docmanager:restore-checkpoint
        // docmanager:save
        // docmanager:save-all
        // docmanager:save-as
        // docmanager:toggle-autosave
        // sidebar:switch
        // apputils:change-theme
        // apputils:theme-scrollbars
        // apputils:incr-font-size
        // apputils:decr-font-size
        // statusbar:toggle
        // rendermime:handle-local-link
        // terminal:create-new
        // terminal:open
        // terminal:refresh
        // terminal:increase-font
        // terminal:decrease-font
        // terminal:set-theme
        // filebrowser:delete
        // filebrowser:copy
        // filebrowser:cut
        // filebrowser:download
        // filebrowser:duplicate
        // filebrowser:hide-main
        // filebrowser:go-to-path
        // filebrowser:open-path
        // filebrowser:open
        // filebrowser:open-browser-tab
        // filebrowser:copy-download-link
        // filebrowser:paste
        // filebrowser:create-new-directory
        // filebrowser:rename
        // filebrowser:copy-path
        // filebrowser:activate
        // filebrowser:shutdown
        // filebrowser:toggle-main
        // filebrowser:create-main-launcher
        // filebrowser:toggle-navigate-to-current-directory
        // filebrowser:share-main
        // markdownviewer:open
        // settingeditor:open
        // settingeditor:revert
        // settingeditor:save
        // notebook:run-cell-and-select-next
        // notebook:run-cell
        // notebook:run-cell-and-insert-below
        // notebook:run-in-console
        // notebook:run-all-cells
        // notebook:run-all-above
        // notebook:run-all-below
        // notebook:render-all-markdown
        // notebook:restart-kernel
        // notebook:close-and-shutdown
        // notebook:trust
        // notebook:export-to-format
        // notebook:restart-clear-output
        // notebook:restart-run-all
        // notebook:clear-all-cell-outputs
        // notebook:clear-cell-output
        // notebook:interrupt-kernel
        // notebook:change-cell-to-code
        // notebook:change-cell-to-markdown
        // notebook:change-cell-to-raw
        // notebook:cut-cell
        // notebook:copy-cell
        // notebook:paste-cell-below
        // notebook:paste-cell-above
        // notebook:paste-and-replace-cell
        // notebook:delete-cell
        // notebook:split-cell-at-cursor
        // notebook:merge-cells
        // notebook:insert-cell-above
        // notebook:insert-cell-below
        // notebook:move-cursor-up
        // notebook:move-cursor-down
        // notebook:extend-marked-cells-above
        // notebook:extend-marked-cells-top
        // notebook:extend-marked-cells-below
        // notebook:extend-marked-cells-bottom
        // notebook:select-all
        // notebook:deselect-all
        // notebook:move-cell-up
        // notebook:move-cell-down
        // notebook:toggle-all-cell-line-numbers
        // notebook:toggle-record-timing
        // notebook:enter-command-mode
        // notebook:enter-edit-mode
        // notebook:undo-cell-action
        // notebook:redo-cell-action
        // notebook:change-kernel
        // notebook:reconnect-to-kernel
        // notebook:create-output-view
        // notebook:create-console
        // notebook:change-cell-to-heading-1
        // notebook:change-cell-to-heading-2
        // notebook:change-cell-to-heading-3
        // notebook:change-cell-to-heading-4
        // notebook:change-cell-to-heading-5
        // notebook:change-cell-to-heading-6
        // notebook:hide-cell-code
        // notebook:show-cell-code
        // notebook:hide-all-cell-code
        // notebook:show-all-cell-code
        // notebook:hide-cell-outputs
        // notebook:show-cell-outputs
        // notebook:hide-all-cell-outputs
        // notebook:show-all-cell-outputs
        // notebook:enable-output-scrolling
        // notebook:disable-output-scrolling
        // notebook:create-new
        // completer:invoke-notebook
        // completer:select-notebook
        // logconsole:open
        // logconsole:add-checkpoint
        // logconsole:clear
        // logconsole:set-level
        // tooltip:launch-notebook
        // 
        // Note: To disable a system default shortcut,
        // copy it to User Preferences and add the
        // "disabled" key, for example:
        // {
        //     "command": "application:activate-next-tab",
        //     "keys": [
        //         "Ctrl Shift ]"
        //     ],
        //     "selector": "body",
        //     "disabled": true
        // }
        // 
        // List of Keyboard Shortcuts
        "shortcuts": [
            {
                "command": "notebook:hide-cell-outputs",
                "keys": [
                    "O"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:show-cell-outputs",
                "keys": [
                    "O",
                    "O"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:hide-all-cell-outputs",
                "keys": [
                    "Ctrl ["
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:show-all-cell-outputs",
                "keys": [
                    "Ctrl ]"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:hide-all-cell-code",
                "keys": [
                    "Ctrl L"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:show-all-cell-code",
                "keys": [
                    "Ctrl ;"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "runmenu:restart-and-run-all",
                "keys": [
                    "Ctrl '"
                ],
                "selector": "[data-jp-code-runner]"
            },
            {
                "command": "kernelmenu:restart-and-clear",
                "keys": [
                    "Ctrl ."
                ],
                "selector": "[data-jp-kernel-user]:focus"
            },
        ]
    }

    반응형
Designed by Tistory.