GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Latex not being rendered in HTML output in VSCode by lkies · Pull Request #1133 · python-control/python-control

Conversation

@lkies

@lkies lkies commented Mar 1, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

...by adding a blanket _repr_markdown_ for InputOutputSystem which is the same as _repr_html_ but the renderer for _repr_markdown_ will also render contained Latex.

Closes #1132

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lkies
fix latex not being rendered in html output in VSCode
bb35a88
by adding a blanket _repr_markdown_ InputOutputSystem which is the same as _repr_html_ but the renderer for _repr_markdown_ will also render contained latex
@coveralls

coveralls commented Mar 1, 2025

Copy link
Copy Markdown

Coverage Status

coverage: 94.745% (+0.001%) from 94.744%
when pulling bb35a88 on lkies:fix-repr
into f6799ab on python-control:main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@murrayrm

murrayrm commented Mar 2, 2025

Copy link
Copy Markdown
Member

@lkies It looks like _repr_markdown breaks some unit tests. I tried running this under MacOS and it was OK, so seems to be specific to linux.

The doctest error is coming from Sphinx:

      File "/home/runner/miniconda3/envs/doctest-env/lib/python3.12/site-packages/sphinx/events.py", line 415, in emit
        raise ExtensionError(
    sphinx.errors.ExtensionError: Handler <function html_collect_pages at 0x7fcd3a5116c0> for event 'html-collect-pages' threw an exception (exception: module 'sphinx.util' has no attribute 'console')

The examples error is coming from singular_values_plot.ipynb. When the following block is executed

%matplotlib nbagg
# only needed when developing python-control
%load_ext autoreload
%autoreload 2

it generates the error

ModuleNotFoundError: No module named 'IPython.extensions.deduperreload'
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Mar 2, 2025
Lint fixes on benchmarks and examples/*.py #1135
Merged
CI failures in doctest, examples #1136
Closed
@lkies

lkies commented Mar 2, 2025

Copy link
Copy Markdown
Contributor Author

@murrayrm so since it seems that this is not my fault I will wait until #1137 is merged an then update my PR?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@murrayrm murrayrm added this to the 0.10.2 milestone Mar 3, 2025
@murrayrm
murrayrm merged commit 45a6a2a into python-control:main Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

0.10.2

Development

Successfully merging this pull request may close these issues.

Latex is not rendered in HTML output of in VSCode

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lkies @coveralls @murrayrm
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.