5 things you had no idea you could do with Jupyter Notebooks

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Jupiter notebooks can do a lot and when you use them with Visual Studio code they can do a lot that you might not even know about in this video I'm going to give you five things that you can do with Jupiter notebooks and visual studio code that you probably had no idea were possible let's go did you know that when you create a plot in a Jupiter notebook vs code gives you a variety of ways to export it as an image you can use the copy button to copy it directly out to another program like say a PowerPoint presentation you can also save that plot using the save button but if you click the expand image button this will open the image in a viewer where you can pan and zoom around on the image and if you save your image from here you can actually pick between PDF PNG and SVG as the output type you can at any time in a Jupiter notebook step through and debug any cell now there are two ways to do this the first is to use the Run by line function this runs each line in order allowing you to manually Advance through the code the other option is the one that you might not know about and that's full debugging to do this you can add something like a breakpoint anywhere in the cell then to debug the cell click the little arrow next to the play button and select debug cell then you have the full debugging capabilities vs code and this includes things like log points which let you log out of value instead of stopping on a breakpoint and pausing the execution it's common to use cell output to print out variable values we all do it but you can view all variable values at any time with the variable Explorer this view lists out all of your variables and their values and it updates in real time as the values change and variables are added or modified and this is super handy for things like data frames where you can see and explore your data set this being able to sort and filter columns for an exact match in a column you can use the equal sign these filters also support regular expressions you can export notebooks right from vs code to a variety of formats like HTML python script and PDF but what you might not know is that there is a gather extension for vs code that will generate an entirely new Notebook based on just one cell so the way this works is that you click The Gather button for the one cell that you want to export The Gather extension creates a new notebook that contains only the code from your notebook required to generate the output for that one cell so super handy for generating very cleaned up versions of your notebooks python code interactively in vs code using the interactive window to open it select create interactive window from the command palette here you can just execute arbitrary python this input box has full intellisense with code completion it's a full python editing experience but did you know that you can turn any section of a python file into an executable cell using the interactive window to do this use the pound percent sign percent sign syntax around the code that you want to turn into a cell you now get this run cell button when you click that the interactive window opens and the code is executed and this is a great way to test parts of your code as you're building your application without having to run your whole project so what's your favorite feature of Jupiter notebooks let us know in the comments below hey if you liked this video like this video And subscribe and check out all our other videos on data science jupyter notebooks and visual studio code happy coding
Info
Channel: Visual Studio Code
Views: 32,979
Rating: undefined out of 5
Keywords: jupyter, jupyternotebooks, python, vscode, datascience
Id: QJo57-pmcuM
Channel Id: undefined
Length: 3min 56sec (236 seconds)
Published: Tue Aug 30 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.