Set apart HN: Bear dashboards in Jupyter Notebook from 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: Import and create a bloxs: from bloxs import B B(1234, “Bloxs in…

45
Set apart HN: Bear dashboards in Jupyter Notebook from bloxs

Bloxs is a easy python bundle that helps you save info in an beautiful method (fashioned in blocks). Ideal for building dashboards, reports and apps within the notebook.

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

Beginning

Set up bloxs:

Import and derive a bloxs:

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

Exmaples

BloxsCode
B(1234, "Bloxs in notebook!")
B(1999, "Percent alternate!", percent_change=10)
B("🎉🎉🎉", "Works with emojis")
B("68%", "Loading progress", progress=68)
B("68%", "Loading progress", progress=68, coloration="inexperienced") coloration would be “blue”, “crimson”, “inexperienced” or customized in hex format (exmaple “#fa33fa”)
B("123", "Veil line chart", aspects=[1,4,2,3,5,6])
B("123", "Veil line chart", aspects=[1,4,2,3,5,6], coloration="crimson")
B("123", "Veil stepped chart", aspects=[1,4,2,3,5,6], chart_type="stepped")
B("123", "Veil bar chart", aspects=[1,4,2,3,5,6], chart_type="bar")
B("123", "Veil bar chart", aspects=[1,4,2,3,5,6], chart_type="bar", coloration="inexperienced")

You will most likely be ready to mix diverse bloxs in a single 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 will most likely be ready to verify the notebook with above instance bloxs.

Bloxs works broad with Mercury

Mercury is a framework for changing notebook to an interactive net app. It adds widgets to the notebook per the YAML config. Beneath is offered a notebook with bloxs and the the same notebook served as a net app with Mercury.

The notebook with bloxs

The Mercury net app

The ranking app is rapidly on the market on our server 💻

Read More

Charlie Layers
WRITTEN BY

Charlie Layers

Fill your life with experiences so you always have a great story to tellBio: About: