/gradio-blocks

Assortment of gradio features using nbdev and altair.

Primary LanguageHTMLMIT LicenseMIT

gradio-blocks 🖥️

Assortment of gradio features using nbdev and altair.

1. Set up environment 🛠️

> git clone https://github.com/lukexyz/gradio-blocks.git
> cd gradio-blocks

> conda create -n gradio python=3.11 pip jupyter
> conda activate gradio
> pip install -r requirements.txt

2. Initialise nbdev 🧪

> nbdev_new
> nbdev_install_hooks

3. nb cell magic ✨

① Label output module,

#| default_exp core

② Export cell funtion,

#| export
def foo(): pass

③ Run export command

#| hide
import nbdev; nbdev.nbdev_export()