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:
dashboard
daq_scan
daq_logger
daq_viewer
daq_move
h5browser
plugin_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.dashboard
python -m pymodaq.extensions.daq_scan
python -m pymodaq.extensions.daq_logger
python -m pymodaq.control_modules.daq_viewer
python -m pymodaq.control_modules.daq_move
python -m pymodaq.extensions.h5browser
python -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…