-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix the ipython_display side effect #531
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #531 +/- ##
===========================================
- Coverage 90.16% 90.14% -0.02%
===========================================
Files 101 101
Lines 6291 6302 +11
===========================================
+ Hits 5672 5681 +9
- Misses 619 621 +2
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Matt!
# Conflicts: # .pylintrc
User description
Context:
Objects with rich ipython displays do not render properly in interactive IPython
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues:
Fixes #509
PR Type
Enhancement, Tests
Description
_ipython_display_
methods across multiple modules to check for interactive IPython shell and default toprint(self)
for better display._ipython_display_
methods in interactive IPython environments.Changes walkthrough 📝
6 files
circuit_components.py
Improve IPython display handling for circuit components
mrmustard/lab_dev/circuit_components.py
_ipython_display_
method.print(self)
for interactive shell.dm.py
Enhance IPython display for density matrix class
mrmustard/lab_dev/states/dm.py
_ipython_display_
method.print(self)
for interactive shell.ket.py
Improve IPython display handling for ket class
mrmustard/lab_dev/states/ket.py
_ipython_display_
method.print(self)
for interactive shell.array_ansatz.py
Enhance IPython display for array ansatz
mrmustard/physics/ansatz/array_ansatz.py
_ipython_display_
method.print(self)
for interactive shell.polyexp_ansatz.py
Improve IPython display handling for polyexp ansatz
mrmustard/physics/ansatz/polyexp_ansatz.py
_ipython_display_
method.print(self)
for interactive shell.wires.py
Enhance IPython display for wires class
mrmustard/physics/wires.py
_ipython_display_
method.print(self)
for interactive shell.4 files
test_circuit_components.py
Add tests for interactive IPython display in circuit components
tests/test_lab_dev/test_circuit_components.py
test_array_ansatz.py
Add tests for interactive IPython display in array ansatz
tests/test_physics/test_ansatz/test_array_ansatz.py
test_polyexp_ansatz.py
Add tests for interactive IPython display in polyexp ansatz
tests/test_physics/test_ansatz/test_polyexp_ansatz.py
test_wires.py
Add tests for interactive IPython display in wires class
tests/test_physics/test_wires.py
1 files
CHANGELOG.md
Update changelog for IPython display enhancements
.github/CHANGELOG.md
2 files
tests_numpy.yml
Update S3 path handling in numpy tests workflow
.github/workflows/tests_numpy.yml
tests_tensorflow.yml
Update S3 path handling in tensorflow tests workflow
.github/workflows/tests_tensorflow.yml