Basic Python IDE Features

The layout and the features are continuously improving.

Prerequisites

Make sure that you have enabled the Python Programming Panel

open setting
enable Programming Panel in General Setting

1. Default Python editor

Python editor layout

  1. python file list : list of the python files

  2. code area: the python code can be edited and viewed there

    The admins can write comments inside python comment block such as '''description in the comment block''' will be displayed to the users, who do not have the admin right to read the code in the code area.

  3. output area: the output is there

  4. new icon: create a new python file

  5. delete icon: delete the python file

  6. save icon: delete the python code

  7. save as icon: delete the python code as new file

  8. run icon: run the python code

  9. pip install area: install the packages by entering the package names divided using a "," for example: xplain, panda, streamlit

  10. options: multiple options can be set in the input field "Options", separated by spaces. Options syntax: --<option_name>=option_value

  11. collapse icon: collapse the IDE

2. Python editor for user with admin role, and server-side python is enabled

If the server side python is enabled, and user has admin role, the Python IDE has one extra serverside checkbox to allow running current python code to run the python environment which is installed on the server side. By default, this checkbox does not appear, instead the pyodide webassembly is used. This checkbox is only visible if user has admin role and backend is started with application property xplain.serverside.python=true.

3. IDE appearance if user without admin roles loads a python script with enabled serverside-flag

  1. python file list : list of the python files

  2. code area: the python code can be edited and viewed there The admins can write comments inside python comment block such as '''description in the comment block''' will be displayed to the users, who do not have the admin right to read the code in the code area.

  3. output area: the output is there

  4. run icon: run the python code

  5. pip install area: install area are automatically filled for the user. Install the packages by entering the package names divided using a "," for example: xplain, panda, streamlit

  6. options: options are set automatically for the user. Multiple options can be set in the input field "Options", separated by spaces. Options syntax: --<option_name>=option_value

  7. collapse icon: collapse the IDE

Last updated