Skip to main content

This is style generator, you can simply generate inline css to insert into your Jupyter notebook to change look of tables in your preview.

Project description

Jupyter notebook Style Helper

What is, the purpose of this project?

This is style generator, you can simply generate inline css to insert into your Jupyter notebook to change look of tables in your preview.

How to install:

pip install jupyter-style

What python version is required?

Code is compatible with python >= 3.5

How to use it?

from IPython.display import HTML, display
import seaborn as sns
from jupyterStyle import StyleHelper

style_generator = StyleHelper.StyleHelper()
style_generator.emit_style()

iris = sns.load_dataset('iris')
display(iris.head(5))

style_generator.emit_style(
        col_header_color="#F02020",
        row_header_color="#AAAA40")

Show me how default Jupyter style looks like to compare.

How can I customise generated style?

  • col_header_color - Column header color
  • row_header_color - Row header color
  • selector - css selector to apply style only to selected elements

ToDo:

  • Add parameters for: lines, margins, shadows, etc.
  • Add a support for predefined themes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

jupyter_style-1.1.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page