Display your data in an attractive way in your notebook!

Overview

Bloxs

Bloxs is a simple python package that helps you display information in an attractive way (formed in blocks). Perfect for building dashboards, reports and apps in the notebook.

It works with: Jupyter Notebook, Google Colab, Deepnote, Kaggle Notebook, Mercury.

Get started

Install bloxs:

pip install bloxs

Import and create a bloxs:

from bloxs import B
B(1234, "Bloxs in notebook!")

Exmaples

Bloxs Code
B(1234, "Bloxs in notebook!")
B(1999, "Percent change!", percent_change=10)
B("๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰", "Works with emojis")
B("68%", "Loading progress", progress=68)
B("68%", "Loading progress", progress=68, color="green") color can be "blue", "red", "green" or custom in hex format (exmaple "#fa33fa")
B("123", "Display line chart", points=[1,4,2,3,5,6])
B("123", "Display line chart", points=[1,4,2,3,5,6], color="red")
B("123", "Display stepped chart", points=[1,4,2,3,5,6], chart_type="stepped")
B("123", "Display bar chart", points=[1,4,2,3,5,6], chart_type="bar")
B("123", "Display bar chart", points=[1,4,2,3,5,6], chart_type="bar", color="green")

You can combine several bloxs in one row:

B([
    B(1999, "Percent change!", percent_change=10),
    B("๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰", "Works with emojis"),
    B("68%", "Loading progress", progress=68),
    B(1234, "Bloxs in notebook!")
])

B([
    B("786", "Display bar chart", points=[1,4,2,3,5,6], chart_type="bar", color="green"),
    B("123", "Display line chart", points=[1,4,2,3,5,6], color="red"),
    B("123", "Display stepped chart", points=[1,4,2,3,5,6], chart_type="stepped")
])

๐Ÿ’ป You can check the notebook with above example bloxs.

Bloxs works great with Mercury

Mercury is a framework for converting notebook to an interactive web app. It adds widgets to the notebook based on the YAML config. Below is presented a notebook with bloxs and the same notebook served as a web app with Mercury.

The notebook with bloxs

The Mercury web app

The web app is available on our server ๐Ÿ’ป

You might also like...
In this project, we are going to display the battery notification and the time left for the battery to drain out using the battery capacity value.
In this project, we are going to display the battery notification and the time left for the battery to drain out using the battery capacity value.

In this project, we are going to display the battery notification and the time left for the battery to drain out using the battery capacity value.

A service to display a quick summary of a project on GitHub.
A service to display a quick summary of a project on GitHub.

A service to display a quick summary of a project on GitHub. Usage ๐Ÿ“– Paste the code below with details filled in as specified below into your Readme.

Chemical Analysis Calculator, with full solution display.
Chemical Analysis Calculator, with full solution display.

Chemicology Chemical Analysis Calculator, to solve problems efficiently by displaying whole solution. Go to releases for downloading .exe, .dmg, Linux

Bootstraparse is a personal project started with a specific goal in mind: creating static html pages for direct display from a markdown-like file

Bootstraparse is a personal project started with a specific goal in mind: creating static html pages for direct display from a markdown-like file

Streamlit component to display topics from Streamlit's community forum related to any exception.

streamlit-forum Streamlit component to display topics from Streamlit's community forum related to any exception. Installation pip install streamlit-fo

Connect Playground - easy way to fill in your account with production-like objects

Just set of scripts to initialise accpunt with production-like data: A - Basic Distributor Account Initialization INPUT Distributor Account Token ACTI

Secret santa is a fun and easy way to get together with your friends and/or family with a gift for them.

Secret Santa What is Secret Santa? Secret santa is a fun and easy way to get together with your friends and/or family with a gift for them. The idea i

Tips that improve your life in one way or another

Tips that improve your life in one way or another. This software downloads life tips from reddit.com/r/LifeProTips and tweet the most upvoted tips on Twitter.

An easy way to access to your EPITECH subjects based on the Roslyn's database.

An easy way to access to your EPITECH subjects based on the Roslyn's database.

Comments
  • Graph line does not show up

    Graph line does not show up

    The bloxs examples work fine on Colab but when I transfer the same code to my local machine the charts do not show up. The block appears with the text in it but the graph is missing. I've tried with Jupyter Notebook, Jupyter Lab and VSCode all with the same result. I'm using Anaconda Python 3.9.7

    Screenshot 2022-04-05 171301 .

    opened by alanjones2 12
  • Fill color not affected when using hex color definition

    Fill color not affected when using hex color definition

    If you specify a color in hex, e.g.

    B("Rain",year,points=rain, color="#FF6384")

    This only changes the line color in a line graph and has no visible effect on the lighter fill color. With a bar graph there is no visible effect.

    Could there be a fill-color parameter, too? That way we could match the colors appropriately.

    opened by alanjones2 1
Releases(v1.0.2)
Owner
MLJAR
Data Science meets Software Engineering
MLJAR
๐ŸŽด LearnQuick is a flashcard application that you can study with decks and cards.

๐ŸŽด LearnQuick is a flashcard application that you can study with decks and cards. The main function of the application is to show the front sides of the created cards to the user and ask them to guess

Mehmet Gรผdรผk 7 Aug 21, 2022
A Guide for Feature Engineering and Feature Selection, with implementations and examples in Python.

Feature Engineering & Feature Selection A comprehensive guide [pdf] [markdown] for Feature Engineering and Feature Selection, with implementations and

Yimeng.Zhang 968 Dec 29, 2022
Extrator de dados do jupiterweb

Extrator de dados do jupiterweb O programa รฉ composto de dois arquivos: Um constando apenas de classes complementares que representam as unidades e as

Bruno Aricรณ 2 Nov 28, 2022
TickerRain is an open-source web app that stores and analysis Reddit posts in a transparent and semi-interactive manner.

TickerRain is an open-source web app that stores and analysis Reddit posts in a transparent and semi-interactive manner

GonVas 180 Oct 08, 2022
Intelligent Systems Project In Python

Intelligent Systems Project In Python

RLLAB 3 May 16, 2022
Repository voor verhalen over de woningbouw-opgave in Nederland

Analyse plancapaciteit woningen In deze notebook zetten we cijfers op een rij om de woningbouwplannen van Nederlandse gemeenten in kaart te kunnen bre

Follow the Money 10 Jun 30, 2022
Petuhlang is a joke-like language, based on Python.

Petuhlang is a joke-like language, based on Python. It updates builtins to make a new syntax based on operators rewrite.

DenyS 9 Jun 19, 2022
A program that makes all 47 textures of Optifine CTM only using 2 textures

A program that makes all 47 textures of Optifine CTM only using 2 textures

1 Jan 22, 2022
A web UI for managing your 351ELEC device ROMs.

351ELEC WebUI A web UI for managing your 351ELEC device ROMs. Requirements Python 3 or Python 2.7 are required. If the ftfy package is installed, it w

Ben Phelps 5 Sep 26, 2022
A collection of tips for using MISP.

MISP Tip of the Week A collection of tips for using MISP. Published via BelgoMISP (todo) and this repository. Available in MD and JSON. Do you want to

Koen Van Impe 52 Jan 07, 2023
An example using debezium and mysql with docker-compose

debezium-mysql An example using debezium and mysql with docker-compose The docker compose starts the Zookeeper, Kafka, Mysql and Debezium Connect. Aft

Horรกcio Dias Baptista Neto 4 May 21, 2022
A pomodoro app written in Python

Pomodoro It's a pomodoro app written in Python. You can minimize it while you're working if you want to, it'll pop up on your screen when the timer is

YiฤŸit 1 Dec 20, 2021
Update your Nintendo Switch cheats with one click, or a bit more~

Interactive-ASM-Cheats-Updater This updater unlocks your ability of updating most of the ASM cheats for Nintendo Switch. Table of Contents Functions Q

zzpong 63 Dec 27, 2022
basic tool for NFT. let's spam, this is the easiest way to generate a hell lotta image

NFT generator this is the easiest way to generate a hell lotta image buckle up and follow me! how to first have your image in .png (transparent backgr

34 Nov 18, 2022
A 100% python file organizer. Keep your computer always organized!

PythonOrganizer A 100% python file organizer. Keep your computer always organized! To run the project, just clone the folder and run the installation

3 Dec 02, 2022
Astroquery is an astropy affiliated package that contains a collection of tools to access online Astronomical data.

Astroquery is an astropy affiliated package that contains a collection of tools to access online Astronomical data.

The Astropy Project 631 Jan 05, 2023
Restaurant-finder - Restaurant finder With Python

restaurant-finder APIs /restaurants query-params: a. filter: column based on whi

Kumar saurav 1 Feb 22, 2022
Cloud-native SIEM for intelligent security analytics for your entire enterprise.

Microsoft Sentinel Welcome to the Microsoft Sentinel repository! This repository contains out of the box detections, exploration queries, hunting quer

Microsoft Azure 2.9k Jan 02, 2023
Pattern Matching for Python 3.7+ in a simple, yet powerful, extensible manner.

Awesome Pattern Matching (apm) for Python pip install awesome-pattern-matching Simple Powerful Extensible Composable Functional Python 3.7+, PyPy3.7+

Julian Fleischer 97 Nov 03, 2022
Better firefox bookmarks script for rofi

rofi-bookmarks Small python script to open firefox bookmarks with rofi. Features Icons! Only show bookmarks in a specified bookmark folder Show entire

32 Nov 10, 2022