Interactive field generation
In order to explore the capabilities of parafields, we provide functionality to interactively explore the field generation process. Note that you need to install the jupyter extra dependencies to run this notebook e.g. with
python -m pip install parafields[jupyter]
Additionally, you need your favorite Jupyter frontend e.g. JupyterLab.
[1]:
import parafields
Instead of using parafields.generate_field, we use parafields.interactive_generate_field:
[2]:
field = parafields.interactive_generate_field()
You can now interactively explore with the available configuration space. For two-dimensional fields, you also get interactive field visualizations. The field object returned in above code is automatically updated, whenever you click “Show Realization” and can be subsequently used like a normal RandomField object.
[3]:
field = parafields.interactive_add_trend_component(field)