Skip to content

Performance is slow for tables with a lot of columns (and cells) #68

@afshin

Description

@afshin

beakerx_tabledisplay performance takes a big hit and can freeze the browser when there are a lot of cells.

To reproduce this issue:

Set up

conda create -y -n slowtable
conda activate slowtable
conda install -y jupyterlab
pip install beakerx_tabledisplay
beakerx_tabledisplay install
jupyter lab

Execute

This is the code I ran to manifest the issue. Here is a zipped notebook containing the code below: slow-tabledisplay.ipynb.zip

Cell 1

import beakerx_tabledisplay
import pandas as pd
table = pd.DataFrame({k: range(10) for k in range(1000)})

Cell 2

display(table)

Note on JupyterLab 2 vs. 3

Interestingly, while this is slow in both JupyterLab 2.x and also JupyterLab 3.x, it seems slightly slower in JupyterLab 3, which causes this warning to arise in Firefox:

firefox-warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions