Run in console thonny4/5/2023 ![]() ![]() Open file in the editor, and select a fragment of code to be executed.įrom the context menu of the selection, choose Execute Selection in Python Console, or press Alt+Shift+E: ![]() Run source code from the editor in console The variable will be opened in the Data tab of the SciView window. To try it, do one of the following:Ĭlick the link View as Array/ View as DataFrame:įrom the context menu of a variable, choose View as Array/ View as DataFrame: When your variables are numpy arrays or dataframes, you can preview them as an array in a separate window. The console is available for all types of Python interpreters and virtual environments, both local and remote. To preview the variable values calculated in the course of the execution, click and check the Special Variables list. You can use up and down arrow keys to browse through the history of executed commands, and repeat the desired ones. The main reason for using the Python console within P圜harm is to benefit from the main IDE features, such as code completion, code analysis, and quick fixes. You can assign a shortcut to open Python console: press Ctrl+Alt+S, navigate to Keymap, specify a shortcut for Main menu | Tools | Python or Debug Console. The console appears as a tool window every time you choose the corresponding command on the Tools menu. Refer to the section Configure color schemes for consoles for details. Use the toolbar buttons to control your session in the console.Ĭonfigure color scheme of the console to meet your preferences. Use the context menu to copy the contents of the console to the clipboard, compare it with the clipboard, or clear the console. Load source code from the editor into console. Use Up and Down arrow keys to scroll through the history of commands, and execute the required ones. Use the await keyword to run asyncio coroutines. Use basic code completion Ctrl+Space and tab completion. Results are displayed in the same console. Type commands and press Enter to execute them. Python console enables executing Python commands and scripts line by line, similar to your experience with Python Shell. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |