All Projects β†’ nteract β†’ Vdom

nteract / Vdom

Licence: bsd-3-clause
πŸŽ„ Virtual DOM for Python

Programming Languages

python
139335 projects - #7 most used programming language
declarative
70 projects

Projects that are alternatives of or similar to Vdom

Nas fpn tensorflow
NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection.
Stars: ✭ 198 (-1%)
Mutual labels:  jupyter-notebook
Pysonar
Decentralized Machine Learning Client
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Gpt 2 Colab
retrain gpt-2 in colab
Stars: ✭ 200 (+0%)
Mutual labels:  jupyter-notebook
Go Tflite
Go binding for TensorFlow Lite
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Mgcnn
Multi-Graph Convolutional Neural Networks
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Neuralnetworks.thought Experiments
Observations and notes to understand the workings of neural network models and other thought experiments using Tensorflow
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Neural networks and cv
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Pyspark And Mllib
Getting start with PySpark and MLlib
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Datascience
μ±…) 파이썬으둜 데이터 주무λ₯΄κΈ° - μ†ŒμŠ€μ½”λ“œ 및 데이터 곡개
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Binpy
An electronic simulation library written in pure Python
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Ml Lessons
Intro to deep learning for medical imaging lesson, by MD.ai
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Radio
RadIO is a library for data science research of computed tomography imaging
Stars: ✭ 198 (-1%)
Mutual labels:  jupyter-notebook
Rl Adventure
Pytorch Implementation of DQN / DDQN / Prioritized replay/ noisy networks/ distributional values/ Rainbow/ hierarchical RL
Stars: ✭ 2,505 (+1152.5%)
Mutual labels:  jupyter-notebook
Python For Finance Cookbook
Python for Finance Cookbook, published by Packt
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Medium articles
Scripts/Notebooks used for my articles published on Medium
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Pytorch Geometric Yoochoose
This is a tutorial for PyTorch Geometric on the YooChoose dataset
Stars: ✭ 198 (-1%)
Mutual labels:  jupyter-notebook
Food2vec
πŸ”
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook
Traffic Sign Detection
Traffic Sign Detection. Code for the paper entitled "Evaluation of deep neural networks for traffic sign detection systems".
Stars: ✭ 200 (+0%)
Mutual labels:  jupyter-notebook
Machine Learning With Python Cookbook Notes
(Part of) Chris Albon's Machine Learning with Python Cookbook in .ipynb form
Stars: ✭ 197 (-1.5%)
Mutual labels:  jupyter-notebook
Basset
Convolutional neural network analysis for predicting DNA sequence activity.
Stars: ✭ 199 (-0.5%)
Mutual labels:  jupyter-notebook

VDOM

Code style: black

Why use VDOM

  • Write Declarative Pythonic layouts.
  • Create headings, prose, images, and more common user interface items with user-friendly declarative statements.
  • Render the layout in Jupyter frontends, such as nteract and JupyterLab.
  • Serialize the layout for rehydration and later use in your web app.

Check out the power of VDOM

Create layouts by writing and running Python code. Let's see an example below to create and display a heading, styled prose, and a GIF:

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 example created a layout and served it below:

Now Incredibly Declarative

Can you believe we wrote this in Python?

What will you create next?


Getting started

Install the Python package

pip install vdom

Usage

First, import vdom.helpers for headings, text, and images:

from vdom.helpers import h1, p, img, div, b

Create a layout using the VDOM helpers in Python code. Here's an example code layout block:

my_pretty_layout = 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?'),
)

To display the layout, use IPython's display method:

from IPython.display import display


display(my_pretty_layout)

The full example, including rendered output, is found above.

Documentation

Contribute to VDOM

Developer install from source code

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

Contributing Guidelines and Releases

We follow these Contributing Guidelines.

For contributors helping with creating releases, the [RELEASING.md] document outlines the process.

Find out more about nteract

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].