source: sasview/src/sas/qtgui/Calculators/media/python_shell_help.rst @ 417c03f

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 417c03f was 417c03f, checked in by Piotr Rozyczko <rozyczko@…>, 4 years ago

Moved RST files around and modified sphinx config to use them. SASVIEW-927

  • Property mode set to 100755
File size: 1.5 KB

Python Shell-Editor Tool

Description

This is a Python shell/editor provided with WxPython.

For the help about Python, visit the website http://docs.python.org/tutorial/

Note

This shell/editor has its own help, but the Help() and Credits() calls do not work on Macs.

The NumPy, SciPy, and Matplotlib, etc, libraries are shipped with SasView and so functions from these can be imported into the shell/editor, however, some functionality may not work.

new_pycrust_example.png

When a Python file, for example a fitting model, is created or loaded with the New or Open options from the menu, a new tab opens with an editing notebook.

new_pycrust_example_2.png

If a Python (.py) model has a linked C (.c) subroutine in the same folder then the shell/editor will open both! However input focus is usually transferred to the tab with the .c file.

To compile a model, select Run > Check Model from the shell/editor menu. If the model contains a unit test (which it should!!!) then this will also run and a popup window will report the success/failure of the test.

Note

This help document was last changed by Steve King, 10Oct2015

Note: See TracBrowser for help on using the repository browser.