Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Python VisualNew to Visual Studio Code? Get it now.
Python Visual

Python Visual

EVAS

|
7,948 installs
| (2) | Free
Python running tool can output tables, charts, and photo albums without relying on any library
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Python-Visual

Python running tool can output tables, charts, and photo albums without relying on any library. You can export the running results as PNG images

all

If you frequently use Python for various production/development tools, this Extension is very useful for you.

Features

  • [X] Add/Edit interactive forms and associate running scripts.
  • [X] Convenient way to pass parameters between forms and scripts.
  • [X] Share your tool solutions.
  • [X] Output Table.
  • [X] Output Charts.
  • [X] Output Photos.
  • [X] Export the result.
  • [ ] Output layout (ToDo)
  • [X] Charts trace (ToDo)

How to use

Create Solution

create In the solution editor, you can configure interactive forms and bind *.py to be called

Configure interactive Forms and Script Worker

formAndWorker

Rich Output

Python receiving parameters and basic log output

log-print All outputs are generated through the print() method

Long execution waiting for completion

wait

Output Table

tabeOut

import json

table = {
  'renderType': 'table',
  'id': 'table1', // new, If you want to continuously change the table data, you only need to output the table with the same ID in the next logic to replace it.
  'columns': [
  {
    'title': 'Name',
    'dataIndex': 'name',
  },
  {
    'title': 'Age',
    'dataIndex': 'age',
  },
  {
    'title': 'Favorite',
    'dataIndex': 'favorite',
  },
],
 'data': [
  {
    'name': 'name1',
    'age': 18,
    'favorite':  'favorite',
  },
  {
    'name': 'name2',
    'age': 20,
    'favorite': 'favorite',
  }
]
}

print(json.dumps(table))

Output Local Album

photo

import json

photo1 = {
 'renderType': 'imgs',
 'title': 'My Photos',
 'path': '/Users/fangjianbing/work/yix/val2017',
 # 'col': 4,
 # 'pageSize': 24
}

print(json.dumps(photo1))

Output Chart

Can output eChart charts charts

import json

chart = {
    'renderType': 'chart',
    'options': {
        'title': {
            'text': 'Chart2'
        },
        'xAxis': {
            'type': 'category',
            'data': ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        'yAxis': {
            'type': 'value'
        },
        'series': [
            {
            'data': [120, 200, 150, 80, 70, 110, 130],
            'type': 'bar'
            }
        ]
    }
}
print(json.dumps(chart))

Please refer to the eChart document for the values of options

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft