A directive to include panel's screenshots into a Sphinx document
Project description
sphinx_panel_screenshot
A Sphinx directive for including the screenshot of an holoviz's panel widget in a Sphinx document.
This package is based on matplotlib's plot directive.
Install
pip install sphinx_panel_screenshot
or:
conda install -c davide_sd sphinx_panel_screenshot
Take a look at the Installation page to understand how to configure the extension to run on readthedocs.org server.
Usage
.. panel-screenshot::
floatslider = pn.widgets.FloatSlider(start=0, end=2, value=0.5,
name="Float Slider")
radiobutton_group = pn.widgets.RadioButtonGroup(
name='Radio Button Group', options=['Biology', 'Chemistry', 'Physics'],
button_type='success')
radiobox_group = radio_group = pn.widgets.RadioBoxGroup(
name='RadioBoxGroup', options=['Biology', 'Chemistry', 'Physics'], inline=True)
select = pn.widgets.Select(name='Select',
options=['Biology', 'Chemistry', 'Physics'])
checkbutton_group = pn.widgets.CheckButtonGroup(name='Check Button Group',
value=['Apple', 'Pear'],
options=['Apple', 'Banana', 'Pear', 'Strawberry'])
checkbox = pn.widgets.Checkbox(name='Checkbox')
col = pn.Column(floatslider, radiobutton_group, radiobox_group, select, checkbutton_group, checkbox)
col
Take a look at the Examples page to visualize the available customization options.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sphinx_panel_screenshot-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3235f8175b2bb954610695dbe2e265871a9138508e3d17e91c19cb3db48e0d47 |
|
MD5 | 7cb1084bdaea9199e035cf1de0f6dabf |
|
BLAKE2b-256 | 7a794ddbfccb291a7a90fef5fa9d6ad8e67923c0ca639b44c75e68f7b34bc1e4 |
Close
Hashes for sphinx_panel_screenshot-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9f0dc45f6fdf5fdab0b899fc47023364f503833156f95cd7fce3c79328f14f2 |
|
MD5 | f2e5aa4e8ae59e3dcbe734dd04260121 |
|
BLAKE2b-256 | aee83095029cf57c431b250570f0665d074e279e4d0f94c798428d01dc361759 |