feat: add interactive Plotly 3D view to GUI#147
Merged
Conversation
- Replace commented-out QLabel viz tab with QWebEngineView that renders an interactive Plotly 3D model after Create Geometry is clicked - Add PyQtWebEngine to gui optional dependency - Graceful fallback if PyQtWebEngine is not installed - Rename docs menu entry from "GUI — ospgui" to "GUI" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Strip og.plot_model() line from exec'd code when QWebEngineView is available, preventing the matplotlib window from popping up - Position plotly legends outside the plot area with right margin Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Left/Right skew angles: 0 -> 5 degrees - Longitudinal beams: 5 -> 7 - Mesh type: Ortho -> Oblique (listed first) - Material grade: 32MPa -> 65MPa Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… browser Patch plt.show() as a no-op during exec so the matplotlib window doesn't pop up, but keep og.plot_model() in the generated code so saved scripts work standalone. When QWebEngineView is unavailable, fall back to opening the plotly 3D view in the system browser. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…lback - Add GUI screenshot to docs page - Move Code View tab to the left of 3D View tab - Suppress plt.show() during GUI exec to prevent matplotlib popup - Fall back to opening plotly 3D view in system browser when QWebEngineView is unavailable Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PyQtWebEngineto theguioptional dependencyTest plan
pip install -e ".[gui]"and launchospgui🤖 Generated with Claude Code