Giter Club home page Giter Club logo

custom.js's Introduction

custom.js

My custom Jupyter shortcuts. ๐Ÿ˜Š

How to use:

(1) While a cell is selected (blue outline in Command Mode, green outline in Edit Mode), Use Ctrl+E to open the cell in Sublime. (Save and close the file when you're done editing.)

(2) Then use Ctrl+Shift+E to update the cell with the contents saved in Sublime. (Ctrl+Shift+E will do nothing if the cell has never been edited in Sublime.)

(3) Ctrl+O will copy the output of a cell. Works in Edit or Command mode.

  • Only tested on Chrome. Firefox may complain about permission issues because this shortcut uses document.execCommand('cut') to implement copying.

Additional side things:

Starting at line 151 in the file custom.js I added the following lines:

Edit.add_shortcut('ctrl-b', 'jupyter-notebook:run-cell');
Command.add_shortcut('ctrl-b', 'jupyter-notebook:run-cell');
Edit.remove_shortcut('ctrl-enter');
Edit.add_shortcut('alt-w', 'jupyter-notebook:enter-command-mode');
Command.add_shortcut('alt-w', 'jupyter-notebook:enter-edit-mode');

Basically:

  • Ctrl+B to run the cell (edit or command mode)

  • Unbind Ctrl+Enter while in edit mode

  • Alt+W to enter and exit edit mode.

If you don't want one of them just delete the line, and nothing bad will happen.

custom.js's People

Contributors

spenceryue avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.