# \[Python\] Calculator formulae

**URL:** <https://discourse.paraview.org/t/python-calculator-formulae/7427>\
**Category:** Development\
**Created:** [June 16, 2021, 2:37pm UTC](https://discourse.paraview.org/t/python-calculator-formulae/7427 "2021-06-16T14:37:03Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)\
**Post date:** [June 8, 2022, 9:35pm UTC](https://discourse.paraview.org/t/python-calculator-formulae/7427/21 "2022-06-08T21:35:17Z")

</div>

The Type “Expression” is for what? The Calculator? If so I recommend, a more specific name, such as “Calculator”. It’s confusing to have an “Expression” column as well as an “Expression” type.

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [June 9, 2022, 6:57am UTC](https://discourse.paraview.org/t/python-calculator-formulae/7427/22 "2022-06-09T06:57:25Z")

</div>

The idea is that it could be used in other locations, not only in the Calculator.

---

<div class="post-metadata">

**Author:** ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)\
**Post date:** [June 9, 2022, 7:44am UTC](https://discourse.paraview.org/t/python-calculator-formulae/7427/23 "2022-06-09T07:44:11Z")

</div>

We would like to distinguish “Python” and “non-Python” so we use “Expression” for the second one but I have no strong position, if you have better suggestions.

---

<div class="post-metadata">

**Author:** ![LEKIEN](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lekien/32/7492_2.png) [@LEKIEN](https://discourse.paraview.org/u/LEKIEN)\
**Post date:** [June 9, 2022, 12:19pm UTC](https://discourse.paraview.org/t/python-calculator-formulae/7427/24 "2022-06-09T12:19:08Z")

</div>

To bounce on my last intervention, we have the case of _expression_ which are in fact only a value of a _physical constant_ (as speed of light, Planck, gravitation, Rydberg, Boltzmann, etc)… hence this need for re-entering.

At the GUI, an alternative _expression_ could be to put _code_ or _encoding_ instead of expression to remain general.

---

<div class="post-metadata">

**Author:** ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)\
**Post date:** [June 23, 2022, 1:45pm UTC](https://discourse.paraview.org/t/python-calculator-formulae/7427/25 "2022-06-23T13:45:43Z")

</div>

Happy to announce that the `Expression Manager` is now part of ParaView!

It was merged into the master branch, so it will be in the next 5.11 release.

Here is a final overview of the Manager dialog and its integration in the Properties panel.  
 ![ExpresssionChooser2](https://discourse.paraview.org/uploads/default/original/2X/6/6f158085157c3bebcf09071708e4b1f3b3498770.gif)

Supported features include:

- named expression
- group (python or not)
- auto save in the settings
- export (and import) to file
- quick access to save / use expression from the properties panel

Any feedback is welcome! So we can plan future potential evolutions.

[Previous page](https://discourse.paraview.org/t/python-calculator-formulae/7427.md?page=1)
