Better integration to the Python shell and JupyterLab
Currently, pyxel
is used as a standalone application from the command line.
This application takes a YAML file as input and stores NumPy arrays, PNG images, FITS files, ... as output(s).
Example:
$ python pyxel/run.py --config config.yaml
Proposed modification
It would interesting to use pixel
directly from a Python shell or JupyterLab.
Example:
$ python
>>> import pyxel
>>> config = pyxel.load_config(filename='config.yaml') # Load the YAML configuration file
>>> processor = pyxel.Processor.from_config(config) # Create a new processor based on the configuration file
>>> new_processor = pyxel.run(processor, mode='Single') # Run the pipeline and generate a new processor
>>> pyxel.get_plot(new_processor, plot_type='graph')
.. display a plot with Matplotlib ..