question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pretty-print the expression in widget mode

See original GitHub issue

When you have longer expressions, the text and widget modes render very differently. It would be very nice if we could also pretty-print in the widget mode. Here’s an example:

example : ∀ n : ℕ, to_string n ≠ "hello" :=
begin
    intro n, dsimp [to_string, has_to_string.to_string, repr, has_repr.repr, nat.repr, nat.to_digits],
    delta nat.to_digits,
    -- put your cursor here
end

image

The top state is rendered using widget mode, the bottom one is just text, but they both refer to the same proof state.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
EdAyerscommented, Aug 11, 2020

The vscode extension does not need to be adjusted

1reaction
EdAyerscommented, Aug 11, 2020

So this issue should be moved to the lean repo or mathlib, it’s not a vscode problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Printing - SymPy 1.11 documentation
As we have already seen, SymPy can pretty print its output using Unicode characters. This is a short introduction to the most common ......
Read more >
xml:prettyPrint() - Humio Documentation
The name of the field to store the output in. The name of the field to format. The indentation in number of characters....
Read more >
Pretty printing Sympy expression in Tkinter? - Stack Overflow
Is there a way to pretty print a Sympy expression within a Tkinter window? I tried writing a function that finds the derivative...
Read more >
Using Pretty-Printing - Oracle® Developer Studio 12.5
Call-based pretty-printing enables an application to provide its own rendition of an expression's value through a function call. If you specify the –p...
Read more >
Create a static method to pretty print gherkin · Issue #4 - GitHub
I find myself wishing there was a simple SDK with the ability to pretty print (format) gherkin files. Like how intellij cucumber plugin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found