3.2. How to Start
Various ways are possible in order to start modules from PyMoDAQ. In all cases after installation of the package
(using pip or setup.py, see Installation) all the modules will be installed within the
site-packages folder of python.
3.2.1. From command line tool:
Open a command line and activate your environment (if you’re using anaconda, miniconda, venv…):
3.2.1.1. Load installed scripts
During its installation, a few scripts have been installed within you environment directory, this means you can start PyMoDAQ’s main functionalities directly writing in your console either:
dashboarddaq_scandaq_loggerdaq_viewerdaq_moveh5browserplugin_manager
3.2.1.2. Execute a given python file
If you knwow where, within PyMoDAQ directories, is the python file you want to run you can enter for instance:
python -m pymodaq.dashboardpython -m pymodaq.extensions.daq_scanpython -m pymodaq.extensions.daq_loggerpython -m pymodaq.control_modules.daq_viewerpython -m pymodaq.control_modules.daq_movepython -m pymodaq.extensions.h5browserpython -m pymodaq_plugin_manager.manager
for PyMoDAQ’s main modules. The -m option tells python to look within its site-packages folder (where you’ve just
installed pymodaq) In fact if one of PyMoDAQ’s file (xxx.py) as an entry point (a if __name__='__main__:'
statement at the end of the file), you can run it by calling python over it…