Skip to content

fix: disable IPython shell initialization due to pywin bug - #1682

Merged
dipinknair merged 2 commits into
mainfrom
fix/disable-embedding-gui
Jul 15, 2026
Merged

dipinknair merged 2 commits into
mainfrom
fix/disable-embedding-gui

Conversation

@dipinknair

@dipinknair dipinknair commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Temporarily disable shell.initialize_ipython_shell() at module import time to stop the pywin-related crash when running embedded Mechanical in a Jupyter/IPython environment on Windows.

Changes

  • Comment out shell.initialize_ipython_shell() in app.py with a TODO to re-enable after the bug is resolved

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Checklist

  • Title follows Conventional Commits (e.g. feat: add modal analysis support)
  • Tests added or updated
  • Documentation updated

@dipinknair
dipinknair requested a review from a team as a code owner July 14, 2026 16:03
@github-actions github-actions Bot added the bug Something isn't working label Jul 14, 2026
@codacy-production

codacy-production Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

🟢 Coverage ∅ diff coverage · -0.16% coverage variation

Metric Results
Coverage variation ✅ -0.16% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (894656f) 3322 2687 80.89%
Head commit (7ece37d) 3321 (-1) 2681 (-6) 80.73% (-0.16%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1682) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 14, 2026
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.72%. Comparing base (894656f) to head (7ece37d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1682      +/-   ##
==========================================
- Coverage   80.88%   80.72%   -0.16%     
==========================================
  Files          43       43              
  Lines        3322     3321       -1     
==========================================
- Hits         2687     2681       -6     
- Misses        635      640       +5     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dipinknair
dipinknair merged commit 84a64c2 into main Jul 15, 2026
72 checks passed
@dipinknair
dipinknair deleted the fix/disable-embedding-gui branch July 15, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants