1

How can I use display() instead of print() in python VS Code? I wanted to plot a more stylish table, instead of print, but I can do display() only in Jupyter

5
  • 1
    my advice would be to run the notebook in VS Code Commented Feb 24, 2022 at 21:39
  • 3
    Have you read the docs? Commented Feb 24, 2022 at 21:40
  • @PaulH I can't use this function in VS code itself without having to resort to Jupyter? Commented Feb 24, 2022 at 21:42
  • 2
    My guess is "no" since the display function is defined by libraries in the Jupyter ecosystem. Plain python scripting isn't going to support rich output. Commented Feb 24, 2022 at 21:45
  • is the output of display() HTML or text, if text you might include the required sub-module from the Jupyter module Commented Feb 25, 2022 at 3:12

1 Answer 1

2

Although far from reproducing Jupyter's display(), texttable library lets you print out stylish tables easily.

Sign up to request clarification or add additional context in comments.

1 Comment

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.