All Projects → voila-dashboards → Voila Gridstack

voila-dashboards / Voila Gridstack

Licence: other
Dashboard template for Voilà based on GridStackJS

Projects that are alternatives of or similar to Voila Gridstack

Rexgen direct
Template-free prediction of organic reaction outcomes
Stars: ✭ 95 (-2.06%)
Mutual labels:  jupyter-notebook
Ubernet
Demo for CVPR 2017 paper
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Nobslanotebooks
Jupyter notebooks with exercises for the No bullshit guide to linear algebra.
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Python Cheatsheet
Basic Cheat Sheet for Python (PDF, Markdown and Jupyter Notebook)
Stars: ✭ 1,334 (+1275.26%)
Mutual labels:  jupyter-notebook
Ml At Work
電子書籍『仕事ではじめる機械学習』のサポートリポジトリです
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Holiday Similarity
Finding similar images in the Holidays dataset
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Bert Token Embeddings
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Graphnn Multi Object Tracking
Unofficial PyTorch implementation of "Learning a Neural Solver for Multiple Object Tracking"
Stars: ✭ 97 (+0%)
Mutual labels:  jupyter-notebook
Ox Ipynb
org-mode exporter to Jupyter notebooks
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Data Exploration
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Spark Py Notebooks
Apache Spark & Python (pySpark) tutorials for Big Data Analysis and Machine Learning as IPython / Jupyter notebooks
Stars: ✭ 1,338 (+1279.38%)
Mutual labels:  jupyter-notebook
Ngsim env
Learning human driver models from NGSIM data with imitation learning.
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Ijcai cup 2017
IJCAI-17 口碑商家客流量预测
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Machinelearning
A repo with tutorials for algorithms from scratch
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Stock cnn blog pub
This project is a loose implementation of paper "Algorithmic Financial Trading with Deep Convolutional Neural Networks: Time Series to Image Conversion Approach"
Stars: ✭ 97 (+0%)
Mutual labels:  jupyter-notebook
Cheat Sheets
A cheat sheet can be really helpful when you're trying a set of exercises related to a specific topic, or working on a project. Because you can only fit so much information on a single sheet of paper, most cheat sheets are a simple listing of syntax rules. This set of cheat sheets aims to remind you of syntax rules, but also remind you of important concepts as well.
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Pythonplot.com
📈 Interactive comparison of Python plotting libraries for exploratory data analysis. Examples of using Pandas plotting, plotnine, Seaborn, and Matplotlib.
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook
Data cleaning workshop
Created the contents of this repo originally for a workshop I gave at UCLA
Stars: ✭ 97 (+0%)
Mutual labels:  jupyter-notebook
Publicservant ai
Stars: ✭ 97 (+0%)
Mutual labels:  jupyter-notebook
How to do style transfer in tensorflow
Stars: ✭ 96 (-1.03%)
Mutual labels:  jupyter-notebook

voila-gridstack

A gridstack-based template for voila-gridstack.

Gitter channel Voila JupyterLab extension
Join the Gitter Chat Jupyter Notebook on Binder JupyterLab on Binder

Installation

voila-gridstack can be installed with the mamba package manager

mamba install -c conda-forge voila-gridstack

or from PyPI

pip install voila-gridstack

Format

The template uses metadata defined in the notebook file (.ipynb) to configure the layout. The specification of the metadata was defined by a now defunct project jupyter-dashboards. The specification is described in jupyter-dashboards docs.

The voila renderer behaves as a "display-only renderer without authoring capabilitiy" as defined in the specs. However, there are a few differences compared to the original implmentation:

  • if no metadata is found in the notebook voilà will render the notebook as grid layout,
  • it can not persist the state of the cells (i.e. the re-configuration of the layout will be lost, when the user closes the voila page),
  • if the cell does not contain view configuration for the particular view type (grid or report) or hidden attribute is not defined, voilà will treat it as visible.

Usage

To use the gridstack template, pass option --template=gridstack to the voila command line.

voila-gridstack

By default the position of cells in the dashboard will be fixed. If you want them to be draggable and resizable, you can launch voila with the show_handles resource set to True:

voila --template=gridstack examples/ --VoilaConfiguration.resources='{"gridstack": {"show_handles": True}}'

Note, however, that the state of the dashboard can not be persisted in the notebook.

You can change the color scheme using the theme resource:

voila examples/ --template=gridstack --theme=dark

Development

To install the template from source:

# create a new `conda` environment
conda create -n voila-gridstack -c conda-forge notebook python

# activate the environment
conda activate voila-gridstack

# install the package in development mode
python -m pip install -e .

# start voila with the gridstack template
voila --template=gridstack

Classic Notebook Extension

voila-gridstack

voila-gridstack provides an extension for the classic notebook to edit the gridstack layout from the notebook interface.

To install this extension in development mode:

# activate the environment
conda activate voila-gridstack

# link the local files
jupyter nbextension install --sys-prefix --symlink --overwrite --py voila-gridstack

# enable the extension
jupyter nbextension enable --sys-prefix --py voila-gridstack

# check the extension is installed and enabled
jupyter nbextension list

# start the notebook
jupyter notebook

Then edit the files in voila-gridstack/static and reload the page to see the changes.

JupyterLab Extension

voila-gridstack

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# activate the environment
conda activate voila-gridstack

# install JupyterLab
mamba install -c conda-forge jupyterlab

# Install package in development mode
pip install -e .

# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite

# Rebuild extension TypeScript source after making changes
jlpm run build

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab

License

We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.

This software is licensed under the BSD-3-Clause license. See the LICENSE file for details.

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