An experimental nbdev extension for VSCode
-
Navigate between code in notebooks and python modules with the
F2
key. This will navigate to the right cell in the corresponding notebook, or the corresponding line in the python module! demo -
Autocomplete with hints for important directives. This triggers in notebooks when you type
#|
demo
- Download the file
wget https://github.com/fastai/nbdev-vscode/raw/main/nbdev-0.0.2.vsix
- Install the extension with the CLI:
code --install-extension "./nbdev-0.0.2.vsix"
OR install with the GUI:
- Open VSCode in the current directory `code.``
- In the file explorer, right-click
nbdev-0.0.2.vsix
and selectInstall Extension VSIX
:
You can change the default keyboard shortcut from F2
for this extension (and any other extension) by modifying your keyboard shortcuts as follows:
- Open the command palette:
CMD + Shift + P
- Search for
Keyboard Shortcuts
, selectPreferences:Open Keyboard Shortcuts
- Search for
nbdev
in the list of shortcuts - If you hover over the left-hand side of the table, an edit icon will appear - this will allow you to change the shortcut.