Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all dependencies on galgebra.printer #452

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Sep 9, 2020

This means that the print customizations are now completely optional, and only take effect if import galgebra.printer is used. This is a good idea because these customizations may be surprising, as they:

  • Replace the builtin print function
  • Monkey-patch parts of sympy

This type of surprise should be opted into (by choosing to import this module), not automatic.

@lgtm-com
Copy link

lgtm-com bot commented Sep 9, 2020

This pull request introduces 1 alert when merging abda1e6 into eb8ccd2 - view on LGTM.com

new alerts:

  • 1 for Unused import

@eric-wieser eric-wieser force-pushed the remove-GaPrintable branch 3 times, most recently from 0cba561 to 6d8ef28 Compare September 14, 2020 15:37
This is primarily to make the jupyter notebooks easier to review.
This means that the custom print customizations are now completely optional.

The one behavior change here is that `Mv.__str__` no longer uses our custom plaintext printer by default.
That shouldn't be an issue, since `print(Mv)` still does use that printer.
@eric-wieser eric-wieser changed the base branch from master to 0.4.4-release April 6, 2021 13:13
@eric-wieser eric-wieser changed the base branch from 0.4.4-release to master April 6, 2021 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants