Skip to content

FIX Make optional IPython import in markdown printer optional#1158

Merged
rlundeen2 merged 1 commit into
microsoft:mainfrom
tvaucher:fix-optional-import
Oct 30, 2025
Merged

FIX Make optional IPython import in markdown printer optional#1158
rlundeen2 merged 1 commit into
microsoft:mainfrom
tvaucher:fix-optional-import

Conversation

@tvaucher

Copy link
Copy Markdown
Contributor

Description

In the markdown printer, there is a try catch around calls to IPython in case of an ImportError but the import is at the top of the files, which triggers an uncaught ImportError if IPython is not available at the moment the Printer is imported. This sounds like a bug, so I propose pushing the imports within the try/except.

Tests and Documentation

N/A

@rlundeen2
rlundeen2 merged commit a2ab184 into microsoft:main Oct 30, 2025
19 checks passed
@tvaucher
tvaucher deleted the fix-optional-import branch October 31, 2025 13:32
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.

3 participants