Im just wondering how I add fractions in Anvil. I have a normal fractions calculator in pycharm but I cant do “From fractions import Fraction” in anvil.
Hi @dgdhddyd57 and welcome to the forum,
Here’s an app with a fractions module you can use in your own project:
It’s almost identical to the python Fractions module
but very slightly changed to be compatible with anvil’s client-side code
You can copy and paste the fractions
module into you’re own project
Or use the above app as a dependency.
EDIT
The fractions module is now supported natively
2 Likes