Advanced calculator plugin for Wox.
Uses functions from math
module and scipy.special
(if installed).
Supported features:
- Function docstring and autocomplete
- Auto-closing parentheses
- Thousands separator
- List formatting
- Input filtering
- Copy to clipboard after pressing Enter (using
pyperclip
if available, thanks to @Jens-3302) - Persistent storage of last result in variable
x
, (e.g.,1/x
) between sessions (thanks to @Jens-3302) - Support for factorials with
5!
or(3+2)!
(thanks to @Jens-3302) - Support for
^
as power andxor
as bitwise XOR (thanks to @Jens-3302) - Implied multiplication handling (e.g.,
2pi
becomes2*pi
) (thanks to @Jens-3302)
Protip: use =
sign to filter any unneccesary results:
=2+2
or 2+2=
To install the plugin, type in Wox:
wpm install Python Calculator
Install scipy
to enable advanced calculations:
pip install scipy
Plugin uses eval
function which opens up a potential vector for injection attacks.
Be careful when entering untrusted input.