Plotly Dash Snippets Plugin
This is a snippets extension plugin for Visual Studio Code for the Plotly Dash microframework.
Plotly Dash is a great Open Source/Enterprise tool for technical business/data analysts to share their data within their organisations. Plotly Dash in Python can be considered as the equivalent of what the React framework is in JavaScript.
Features
The snippets in this pluggin cover components from the Dash HTML Components, Dash Core Components & some from the Dash Bootstrap Componens Python packages.
For example, predefined Dash HTML Components start with the prefix html
, Dash Core Component start with the prefix dcc
.
In addition, abstractions such as callbacks live on their own (e.g. for an uncontrolled callback, you would call dashcb
, while for a controlled stateful callback, you would call dashcbstate
)
Example
To do
-
Create snippets for Dash Bootstrap Components (developed by faculty.ai) & Plotly packages. Ideally, Plotly objects should start with
plotly
& Dash Bootstrap Components should start with the prefixdbc
-
Create snippets for other abstractions [?]
Dash Generic Snippets:
imdash
- Import Dashiminoutstate
- Import Dash Dependenciesimdcc
- Import Dash Core Componentsimhtml
- Import Dash HTML Componentsimdbc
- Import Dash Boostrap Componentsimflask
- Import Flaskimflaskcache
- Import Flask Cachedashcb
- Uncontrolled State Callbackdashcbstate
- Controlled State Callbackdashapp
- Create Dash App Instacedashrunserver
- Run Dash Appdashencodeimg
- Image Encoding Functiondashhtmltemplate
- Customize Dash's HTML Index Templatedashinlinestyle
- Dash Inline Stylingflaskserver
- Create Flask Server Instacecacheredis
- Create Flask Cache Rediscachefilesystem
- Create Flask Cache File Systemmemoize
- Create Flask Cache Memoize Function
Dash HTML Component Snippets:
htmla
- HTML Anchor - Taghtmla
- HTML Component - Anchorhtmlbr
- HTML Component - Breakhtmlbtn
- HTML Component - Buttonhtmldiv
- HTML Component - Divhtmlfig
- HTML Component - Figurehtmlform
- HTML Component - Formhtmlframe
- HTML Component - Framehtmlh1
- HTML Component - H1htmlh2
- HTML Component - H2htmlh3
- HTML Component - H3htmlh4
- HTML Component - H4htmlh5
- HTML Component - H5htmlh6
- HTML Component - H6htmlheader
- HTML Component - Headerhtmlhr
- HTML Component - Hrhtmli
- HTML Component - Ihtmliframe
- HTML Component - Iframehtmlimg
- HTML Component - Imghtmllabel
- HTML Component - Labelhtmlli
- HTML Component - Lihtmllink
- HTML Component - Linkhtmlnav
- HTML Component - Stronghtmlspan
- HTML Component - Spanhtmltable
- HTML Component - Tablehtmltbody
- HTML Component - Tbodyhtmltd
- HTML Component - Tdhtmltextarea
- HTML Component - Textareahtmlth
- HTML Component - Thhtmlthead
- HTML Component - Theadhtmltr
- HTML Component - Trhtmlul
- HTML Component - Ul
Dash Core Component Snippets:
dccchecklist
- Core Component - Checklistdccdatepickerrange
- Core Component - Date Picker Rangedccdatepickersingle
- Core Component - Date Picker Singledccdropdown
- Core Component - Dropdowndccgraph
- Core Component - Graphdccinput
- Core Component - Inputdccinterval
- Core Component - Intervaldcclink
- Core Component - Linkdccloading
- Core Component - Loadingdcclocation
- Core Component - Locationdccmarkdown
- Core Component - Markdowndccradioitems
- Core Component - Radio Itemsdccrangeslider
- Core Component - RangeSliderdccslider
- Core Component - Sliderdcctab
- Core Component - Tabdcctabs
- Core Component - Tabsdcctextarea
- Core Component - Textarea
Dash Boostrap Component Snippets:
dbcalert
- Bootstrap Components - Alertdbcbadge
- Bootstrap Components - Badgedbcbtn
- Bootstrap Components - Buttondbccol
- Bootstrap Components - Coldbcrow
- Bootstrap Components - Rowdbcrow2cols
- Bootstrap Components - Row with 2 columns embeddeddbcrow3cols
- Bootstrap Components - Row with 3 columns embeddeddbcrow4cols
- Bootstrap Components - Row with 4 columns embedded
Known Issues
Please add known issues here.
Release Notes / Latest Changes
- Bootstrap Card related components added
- 'children' property was moved up 1 line in most components
- Additional Bootstrap Components Added (dbcrow2cols etc.)
- Further Generic Snippets Added (imports/applications generation)
- Dash HTML Components prefix has been changed from
dashhtml
tohtml
, Dash Core Components prefix has been changed fromdashcore
fordcc
& similarly Dash Bootstrap Components will start withdbc
- Dash HTML Component Snippets Added
- Dash Core Component Snippets Added