![]() ![]() Proceed with the debugging steps to complete the execution of the cell.Īction available on the Debugger toolbar.Ĭlick this button to execute the program until the next line in the current method or file, skipping the methods referenced at the current execution point (if any). Similarly, you can step into a function called from a Python file that is located in the same project. Also, you can see a warning message when trying to modify the cell code during the debugging session. The debugger may skip a cell if you change its source code or execute it not under the debugger. Note that the cell with the function must be debugged not just executed. However, if your code cell calls a function from any cell that has been already debugged, you can step into it. Use the stepping toolbar buttons stepping toolbar to choose on which line you want to stop next and switch to the Debugger tab to preview the variable values:ĭebugging is performed within a single code cell. The Jupyter Notebook Debugger tool window opens. Alternatively, you can right-click the cell and select Debug Cell from the context menu. Set the breakpoints in the selected cell and pressįor Windows or ⌥⇧⏎ for macOS. The following debugging features are not supported for remote Jupyter servers at the moment:ĭebugging code with multiprocessing and threading P圜harm provides the Jupyter Notebook Debugger for both local and remote Jupyter server kernels. Even though you proceed with executing other code cells, restart the server, or delete the line with your request, this information will be shown. Note that the Introspection tab shows documentation for the latest requested code element. Preview reference documentation in the Introspection tab. The Introspection tab opens in the Jupyter tool window. Note that a code element should be accessible within the code cell.Įxecute the cell. (in this example, you will preview documentation for plt.scatter). To view reference information for any element of a particular code cell, place the caret within the target code cell and type ?. With P圜harm you can always quickly preview reference documentation for a particular variable, type, or argument. The values of variables are shown next to their usages: Go to Settings | Languages & Frameworks | Jupyter and make sure that the Show inline values in editor checkbox is enabled. In addition to watching the values of variables in the Variables tab, you can preview them in the editor. You can click the link to the right of the variable to preview its values in the tabular form. See Managing Variables Loading Policy for more details. To change the loading policy, click in the Variables tab, select Variables Loading Policy, and select one of the available modes. īy default, variables are loaded asynchronously. When you execute your notebook, you can preview variables in the Variables tab of the Jupyter tool window. This functionality is available only for local Jupyter server kernels. View variables Jupyter Variables tool window When you stop the server and change the server or kernel, you have to execute all cells with dependencies again, because execution results are valid for the current server session only. To execute all code cells in your notebook, click on the notebook toolbar or press Control Alt Shift Enter. In case of any errors, expand the Traceback node to view the complete error message. It includes the execution duration, as well as the date and time when the execution finished. In the lower left corner of the cell, you can find the information about the last cell execution. ![]() When the execution is done, the cell remains in the edit mode, so that you can modify it, if needed, and keep experimenting. If a cell relies on some code in another cell, that cell should be executed first. When executing one cell at a time, mind code dependencies. Shift+Enter: Runs the current cell and selects the cell below it. Use the following smart shortcuts to quickly run the code cells: ![]() Note that when you work with local notebooks, you don’t need to launch any Jupyter server in advance: just execute any cell and the server will be launched. You can execute the code of notebook cells in many ways using the icons on the notebook toolbar and cell toolbar, commands of the code cell context menu (right-click the code cell to open it), and the Run commands of the main menu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |