Skip to content
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

Feature Request: Render SymPy Variables with LaTeX in Variables View #16071

Open
SulthanZahran1 opened this issue Sep 25, 2024 · 0 comments
Open
Assignees
Labels
feature-request Request for new features or functionality variable-explorer

Comments

@SulthanZahran1
Copy link

SulthanZahran1 commented Sep 25, 2024

Summary:
I would like to request an enhancement to the Variables View in the VSCode Jupyter extension to support rendering SymPy variables using LaTeX. This feature would greatly improve readability and usability when working with symbolic mathematics in Jupyter notebooks within VSCode.

Current Behavior:

  • The Variables View displays SymPy variables as plain text.
  • Complex mathematical expressions are hard to read and interpret in this format.
  • A SymPy equation appears cluttered and is not easily distinguishable.

Desired Behavior:

  • Render SymPy variables in the Variables View using LaTeX formatting, similar to how they are displayed in notebook cell outputs when using init_printing(use_latex='mathjax').

Benefits:

  • Improved Readability: LaTeX-rendered expressions are cleaner and more intuitive, especially for complex mathematical formulas.
  • Enhanced Productivity: Allows users to quickly inspect and verify symbolic computations without running additional code cells.

Use Case Example:

import sympy as sp
sp.init_printing(use_latex='mathjax')

x, y = sp.symbols('x y')
expr = sp.Integral(sp.sin(x) / x, (x, 0, sp.oo))
  • In the notebook cell output, expr is displayed as a beautifully rendered LaTeX expression.
  • In the Variables View, expr currently appears as a plain text string: Integral(sin(x)/x, (x, 0, oo)).
@SulthanZahran1 SulthanZahran1 added the feature-request Request for new features or functionality label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality variable-explorer
Projects
None yet
Development

No branches or pull requests

2 participants