VS Code Jupyter extension
Перейти к файлу
dependabot[bot] 22a0bffc40
Bump actions/setup-dotnet from 1.8.0 to 2.1.0 (#9952)
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 1.8.0 to 2.1.0.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v1.8.0...v2.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 17:22:27 +10:00
.devcontainer Version changes as discussed thursday. 2022-06-27 13:21:46 -07:00
.github Bump actions/setup-dotnet from 1.8.0 to 2.1.0 (#9952) 2022-08-31 17:22:27 +10:00
.husky Interactive window layer protection (#10465) 2022-06-15 14:04:05 -07:00
.vscode Put formatter setting in language override, otherwise it can be overridden by a language-scoped user setting. (#11098) 2022-08-10 17:12:35 -07:00
build Revert pinning Pythreejs, upstream issue resolved (#11192) 2022-08-26 05:37:40 +10:00
data Use defaultInterpreterPath over pythonPath (#8610) 2021-12-22 15:58:02 -08:00
docs Add doc dependencies (#425) 2020-11-09 13:46:58 -08:00
images Update create new nb instruction, remove old ipynb (#10686) 2022-07-06 04:50:06 +10:00
news Update main post release branch creation (#11204) 2022-08-29 08:26:25 -07:00
pythonFiles Use a single process to interrupt Python Kernels (#11096) 2022-08-12 12:27:34 +10:00
resources Include jquery as npm package (#10699) 2022-07-06 07:44:02 +10:00
snippets Remove more unnecessary code (#85) 2020-09-17 14:00:29 -07:00
src Remove unused `ERROR` telemetry event (#11232) 2022-08-31 10:12:45 +10:00
types Fix some of the license headers (#11131) 2022-08-17 06:04:55 +10:00
.editorconfig
.eslintrc.js Don't lint vscode.d.ts (#11160) 2022-08-19 18:49:59 -07:00
.gitattributes Update to Jedi 0.17 (#11252) 2020-04-21 10:16:35 -07:00
.gitignore ignore new test result format (#10804) 2022-07-14 10:26:28 -07:00
.npmrc
.nvmrc Version changes as discussed thursday. 2022-06-27 13:21:46 -07:00
.prettierignore Create platform directory structure (#9439) 2022-03-22 15:01:30 -07:00
.prettierrc.js Support Update Display Data (#10874) 2020-03-31 11:08:15 -07:00
.sonarcloud.properties Finish refactoring folder changes (#9516) 2022-03-29 09:35:34 -07:00
.vscodeignore Ignore husky from builds (#10685) 2022-07-06 04:50:16 +10:00
CHANGELOG.md Update main post release branch creation (#11204) 2022-08-29 08:26:25 -07:00
CODE_OF_CONDUCT.md
CODING_STANDARDS.md Run prettier on our yaml, json and md files (#10871) 2020-04-01 10:19:44 -07:00
CONTRIBUTING.md Update packages and npm version (#11025) 2022-08-03 08:48:44 +10:00
INTERACTIVE_TROUBLESHOOTING.md Use `-U` and `--force-reinstall` (#6084) 2021-06-02 14:42:30 -07:00
LICENSE
README.md Update create new nb instruction, remove old ipynb (#10686) 2022-07-06 04:50:06 +10:00
SD-memtest.json Implement memory test (#8546) 2021-12-14 16:12:44 -08:00
SECURITY.md Run prettier on our yaml, json and md files (#10871) 2020-04-01 10:19:44 -07:00
TELEMETRY.csv Remove unused `ERROR` telemetry event (#11232) 2022-08-31 10:12:45 +10:00
TELEMETRY.md Remove unused `ERROR` telemetry event (#11232) 2022-08-31 10:12:45 +10:00
ThirdPartyNotices-Repository.txt Fix interrupting on Windows (#8949) 2022-02-08 08:54:20 -08:00
debugpy_logging.cmd Port back release changelog changes (#9008) 2022-02-11 16:24:02 -08:00
gulpfile.js Remove dead code, unsent telemetry updated telemetry to enforce GDPR info (#11210) 2022-08-30 11:49:28 +10:00
icon.png Losslessly compress PNG images (#5869) 2021-05-14 07:52:48 -07:00
package-lock.json Bump @actions/core from 1.6.0 to 1.9.1 (#11224) 2022-08-30 13:32:53 -07:00
package.json Bump @actions/core from 1.6.0 to 1.9.1 (#11224) 2022-08-30 13:32:53 -07:00
package.nls.it.json Rename Python to Jupyter & remove unwanted strings/localizations (#267) 2020-10-20 12:53:52 -07:00
package.nls.json Add tests for feature used to reconnect to a disconnected remote Jupyter Server (#11099) 2022-08-12 05:21:54 +10:00
package.nls.nl.json Verify remote Jupyter Sever connections upon connecting to remote kernels (#9941) 2022-05-10 04:53:09 +10:00
package.nls.pl.json Rename Python to Jupyter & remove unwanted strings/localizations (#267) 2020-10-20 12:53:52 -07:00
package.nls.ru.json Rename Python to Jupyter & remove unwanted strings/localizations (#267) 2020-10-20 12:53:52 -07:00
package.nls.zh-cn.json Remove dead code used for logging via GH issue (#10360) 2022-06-09 06:44:13 +10:00
package.nls.zh-tw.json removed Notebook creation from extension since it is moving to built-in (#9311) 2022-03-15 16:25:28 -07:00
pvsc.code-workspace Enable debugging IW in vscode.web and add tests for IW on web (#10297) 2022-06-04 06:31:52 +10:00
requirements.in updated ujson library (#10975) 2022-07-29 11:14:53 -07:00
requirements.txt updated ujson library (#10975) 2022-07-29 11:14:53 -07:00
sprint-planning.github-issues Add a sprint planning issues dashboard (#13028) 2020-07-20 12:23:18 -07:00
tsconfig.datascience-ui.json Update to TypeScript 4.4 (#7896) 2021-10-13 10:16:36 -07:00
tsconfig.extension.node.json Change to using msrCrypto to compute hash for serverId (#10673) 2022-07-06 06:10:25 +10:00
tsconfig.extension.web.json Change to using msrCrypto to compute hash for serverId (#10673) 2022-07-06 06:10:25 +10:00
tsconfig.json Enable the flag esModuleInterop (#11132) 2022-08-17 09:59:24 +10:00
tsfmt.json
vscode-python-signing.csproj

README.md

Jupyter Extension for Visual Studio Code

A Visual Studio Code extension that provides basic notebook support for language kernels that are supported in Jupyter Notebooks today. Many language kernels will work with no modification. To enable advanced features, modifications may be needed in the VS Code language extensions.

The Jupyter Extension includes the Jupyter Keymaps and the Jupyter Notebook Renderers extensions by default. The Jupyter Keymaps extension provides Jupyter-consistent keymaps and the Jupyter Notebook Renderers extension provides renderers for MIME types such as latex, plotly, vega, and the like. Both of these extensions can be disabled or uninstalled.

Link Description
File an issue Report problems and suggest enhancements
Go to docs Jupyter extension and data science in VS Code documentation, tutorials, and more
Discussions Post questions, and engage in community discussions

Notebook support

The Jupyter Extension uses the built-in notebook support from VS Code. This UI gives a number of advantages to users of notebooks:

  • Out of the box support for VS Code's vast array of basic code editing features like hot exit, find & replace, and code folding.
  • Editor extensions like VIM, bracket colorization, linters and many more are available while editing a cell.
  • Deep integration with general workbench and file-based features in VS Code like outline view (Table of Contents), breadcrumbs and other operations.
  • Fast load times for Jupyter notebook (.ipynb) files. Any notebook file is loaded and rendered as quickly as possible, while execution-related operations are initialized behind the scenes.
  • Includes a notebook-friendly diff tool, making it much easier to compare and see differences between code cells, output and metadata.
  • Extensibility beyond what the Jupyter extension provides. Extensions can now add their own language or runtime-specific take on notebooks, such as the .NET Interactive Notebooks and Gather
  • While the Jupyter extension comes packaged with a large set of the most commonly used renderers for output, the marketplace supports custom installable renderers to make working with your notebooks even more productive. To get started writing your own, see VS Code's renderer api documentation.

Working with Python

If you would like to work with Python just make sure you're using the latest version of the Python Extension to enjoy the joint partnership of the Python and Juypter Extensions.

Please follow the Python Extension ReadMe instructions to get started and visit the Python Documentation to learn more about how the Python and Jupyter Extension are working together to provide an optimum Python notebooks experience.

Run by Line

To start a lightweight debugging session and run code cells line by line in Python notebooks, press F10 while selecting a cell or click the Run by Line button on the cell toolbar. It also supports remote kernels.

Once you start a Run by Line session the Variable Explorer will appear and variable values will update as you iterate through your code.

To run through the rest of the cell during a Run by Line session hit Ctrl+Enter. To stop, you can click the interrupt button on the left side of the cell.

To set it up, follow the steps here.

Working with other Languages

The Jupyter Extension supports other languages in addition to Python such as Julia, R, and C#.

Quick Start

  • Step 1. Install VS Code

  • Step 2 If not working with Python, make sure to have a Jupyter kernelspec that corresponds to the language you would like to use installed on your machine.

  • Step 3. Install the Jupyter Extension

  • Step 4. Open or create a notebook file and start coding.

Notebooks Quick Start

  • To create a new notebook open the command palette (Windows: Ctrl + Shift + P, macOS: Command + Shift + P) and select the command "Create: New Jupyter Notebook"

  • Select your kernel by clicking on the kernel picker in the top right of the notebook or by invoking the "Notebook: Select Notebook Kernel" command.

  • Change the cell language by clicking the language picker or by invoking the "Notebook: Change Cell Language" command.

Useful commands

Open the Command Palette (Command+Shift+P on macOS and Ctrl+Shift+P on Windows/Linux) and type in one of the following commands:

Command Description
Create: New Jupyter Notebook Create: New Jupyter Notebook
Notebook: Select Notebook Kernel Select or switch kernels within your notebook
Notebook: Change Cell Language Change the language of the cell currently in focus
Jupyter: Export to HTML Jupyter: Export to PDF Create a presentation-friendly version of your notebook in HTML or PDF

To see all available Jupyter Notebook commands, open the Command Palette and type Jupyter or Notebook.

Context Keys for Key bindings

You can use the extension's context keys in 'when' clauses. Here's an example:

  {
    "key": "ctrl+i",
    "command": "jupyter.runAndDebugCell",
    "when": "!jupyter.webExtension"
  }

That keybinding states the jupyter.runAndDebugCell command should map to CTRL+I when not in the jupyter.webExtension.

The full list of context keys can be found here: https://github.com/microsoft/vscode-jupyter/wiki/Extensibility-for-other-extensions#context-keys-for-keybindings

Feature details

Learn more about the rich features of the Jupyter extension:

  • IntelliSense: Edit your code with auto-completion, code navigation, syntax checking and more.

  • Jupyter Notebooks: Create and edit Jupyter Notebooks, add and run code/markdown cells, render plots, create presentation-friendly versions of your notebook by exporting to HTML or PDF and more.

Supported locales

The extension is available in multiple languages: de, en, es, fa, fr, it, ja, ko-kr, nl, pl, pt-br, ru, tr, zh-cn, zh-tw

Questions, issues, feature requests, and contributions

  • If you have a question about how to accomplish something with the extension, please ask on Discussions. Our wiki can be a source of information as well.

  • Any and all feedback is appreciated and welcome! If you come across a problem or bug with the extension, please file an issue.

    • If someone has already filed an issue that encompasses your feedback, please leave a 👍/👎 reaction on the issue.
  • Contributions are always welcome, so please see our contributing guide for more details.

  • If you're interested in the development of the extension, you can read about our development process

Data and telemetry

The Microsoft Jupyter Extension for Visual Studio Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. This extension respects the telemetry.enableTelemetry setting which you can learn more about at https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.