You’ll no longer need to open the overflow menu in the cell toolbar to collapse cell inputs or outputs! Simply hover over to the left of each cell and double-click in order to collapse the elements of your cell.
Once the cells are selected, you can copy/cut/paste/duplicate and even move selected cells by dragging and dropping them to your preferred location. You can also select individual cells using the mouse (Ctrl + Click). Jupyter Notebooks now have support for selecting multiple consecutive cells using the mouse (Shift + Click) or the keyboard shortcut (Shift + Arrow) when in cell selection mode.
To try out Native Notebooks you need to download VS Code Insiders and make sure you have the Jupyter extension! Reminder that the Python extension comes with the Jupyter extension and when working with Python we recommend having both installed for the best Python experience. In this panel, you will be able to either use an input box to programmatically specify your slice using Python slice syntax or use the interactive Axis and Index dropdowns to slice as well. If you have 3-dimensional or greater data ( numpy ndarray, PyTorch Tensor or TensorFlow EagerTensor types), you will now be able to view that multi-dimensional data in the Data Viewer and a new data slicing panel will open in the D ata V iewer by default. This will allow you to view any 2D slice of your higher dimensional data. The D ata V iewer now has support for slicing data. You can now find the filter box at the heading of each column. You can also continue to click on any column heading to sort its data ascending/descending. Lastly, you can now click into individual cells in the Data Viewer to copy out their contents.
Secondly, the Data Viewer now supports viewing both PyTorch and TensorFlow Tensor data types!įinally, we’ve given the entire Data Viewer UI a visual update to make it more aesthetically pleasing. If you’ve made some changes or transformations to your data, rather than having to close and reopen the Data Viewer to view the changes, you can now click the refresh button in the top left to grab the most up-to-date data. Firstly, we have added the ability to refresh the Data Viewer. We’ve added many improvements to our Data Viewer in the latest release.
If you’re interested, you can check the full list of improvements in our changelog.
This release of the Jupyter Extension includes an overhaul and new functionality of the Data Viewer, as well as some UI enhancements and multiselect support for Native Notebooks. You can learn more about Python support in Visual Studio Code in the documentation. If you already have the Python or Jupyter extensions installed, you can also get the latest update by restarting Visual Studio Code. We are pleased to announce that the April 2021 release of the Jupyter Extension for Visual Studio Code is now available. If working with Python, we recommend installing the Python extension directly from the extension gallery in Visual Studio Code.