
a block of lines to be executed at once in the current interpreter (Python or IPython). This also save you from having to select textĪ “code cell” is a concept similar to MATLAB’s “cell” (except that there is no “cell mode” in Visual Studio Code, at least not yet), i.e.This is a much more convinient way of organizing code to be executed in a kernel.Clicking this will send the code within this cell to the kernel.In doing this, the editor will automatically display a code lens with the text Run Cell.Add the text #%% in separate lines, both before and after the previously identified block of code.Identify the block of code to be defined as a cell.You can always use the Clear Results button to clear the results window.The results will either be appended to the existing result set or cleared and then displayed If there were any previous results, depending on the setting Append Results,.


A status bar will appear with the name and status of the kernel.The results will be displayed on the right hand side.From the command palette select the command Jupyter: Run seletion/line.Before using Jupyter (IPython), you will need to ensure the prerequisites are installed and setup.
