Skip to content
Branch: master
Clone or download
Pull request Compare This branch is 104 commits behind nteract:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example-notebooks
vdom
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
MANIFEST.in
README.md
RELEASING.md
setup.cfg
setup.py
versioneer.py

README.md

VDOM

Why use VDOM?

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

⚠️ This library is a work in progress. ⚠️

Check out the power of VDOM!

Start with Python code and run it:

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?

What will you create next?


Install the Python package

pip install vdom

Developer install from source code

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 too.

Find out more about nteract

Take a look at the nteract website to see other projects that we are working on.

You can’t perform that action at this time.