Skip to main content

VDOM for Python

Project description

# [VDOM](https://github.com/nteract/vdom)

## Why use VDOM?

- Write **Declarative** Pythonic layouts.
- Render the layout in Jupyter frontends.
- Serialize layout for rehydration in your web app.

:warning: This library is a work in progress. :warning:

## Check out the power of VDOM!

Start with Python code and run it:

```python
from IPython.display import display
from vdom.helpers import h1, p, img, div, b

display(
div(
h1('Our Incredibly Declarative Example'),
p('Can you believe we wrote this ', b('in Python'), '?'),
img(src="https://media.giphy.com/media/xUPGcguWZHRC2HyBRS/giphy.gif"),
p('What will ', b('you'), ' create next?'),
)
)
```

**Voila!** Your layout is served below:

# Now Incredibly Declarative

Can you believe we wrote this **in Python**?

![](https://media.giphy.com/media/xUPGcguWZHRC2HyBRS/giphy.gif)

What will **you** create next?

---

## Install the Python package

```bash
pip install vdom
```

## Developer install from source code

```bash
git clone https://github.com/nteract/vdom
cd vdom
pip install -e .
```

## We welcome feedback.

Since this project and its API is still a work in progress, we would love to
hear your thoughts on the API and suggestions for enhancements. Please take a look at the [VDOM spec](docs/spec.md) too.

## Find out more about nteract

Take a look at the [nteract website](https://nteract.io) to see other projects
that we are working on.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
vdom-0.5-py2-none-any.whl (9.2 kB) Copy SHA256 hash SHA256 Wheel py2 Nov 9, 2017
vdom-0.5-py3-none-any.whl (9.2 kB) Copy SHA256 hash SHA256 Wheel py3 Nov 9, 2017
vdom-0.5.tar.gz (22.6 kB) Copy SHA256 hash SHA256 Source None Nov 9, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page