github connorferster/handcalcs 1.1.0
Version 1.1.0 - Several new features (and some fixes)!

latest releases: v1.9.0, v.1.8.0, v1.7.1...
4 years ago

I am excited to release this version of handcalcs today especially...because it's my birthday :) I am excited because there are lots of new features that I think you will enjoy using and I am eager to tell you about them:

Features

  • Localization: Use the %decimal_separator line magic to change the decimal separator character from . to any character you like (except _), e.g. %decimal_separator , to change the decimal separator to ,. This will affect every cell in the notebook until it is changed. To change the decimal separator with the decorator interface, use @handcalc(dec_sep = ","). Thank you @BTWS2 for this suggestion.
  • Complex numbers: They now render in handcalcs.
  • Additional function rendering: ceil, floor, and log functions are now swapped out for their proper notation (instead of as generic functions). Thank you @jm4rc05 for this suggestion.
  • Auto scientific notation: When working with floats that are small enough to get "cut-off" by the decimal precision setting when they are rendered out, they will automatically be rendered as scientific notation to the decimal precision specified to prevent loss of significant figures. Thank you @jlopez1979 for this suggestion.
  • Render global namespace vars with decorator: Previously, if you called a global variable from within a function decorated with @handcalc(), it would not render because it was not defined in the function local namespace. Now, they render with no problem. Thank you @michaellisitsa for bringing the issue up and @eriknw for providing the fix with innerscope (so excellent).
  • Render sympy symbols: Previously you could only render out expressions and equations. Now you can render out just your sympy symbols by using %%render sympy symbolic. Thank you to @BTWS2 for pushing me on this.
  • Use other override tags with sympy override tag: The sympy tag is special and does not need to be mutually exclusive from the other overrides. Now you can use sympy symbolic, sympy long, etc.

Fixes

  • Doc string in decorated function: No longer causes errors. Thank you @KingSiz3 for reporting this error.
  • Conditional expressions with override tags: Works smoothly now. Thank you @michaellisitsa for reporting this error.

I am excited to present v1.1.0 of handcalcs. Enjoy!

Get the new release from the repo or on pypi: pip install handcalcs -U

Don't miss a new handcalcs release

NewReleases is sending notifications on new releases.