Open YongcaiHuang opened 1 month ago
similar problem shows when plotting in svg format. it's not readable.
import pandas as pd
import pingouin as pg
import numpy as np
from ipywidgets import HBox, Output
import matplotlib.pyplot as plt
%config InlineBackend.figure_format = 'svg'
def horizontally_display(objs):
outputs = []
for obj in objs:
output = Output()
with output:
display(obj)
outputs.append(output)
hbox = HBox(outputs)
display(hbox)
data = pg.read_dataset("anova2")
data_piv = data.pivot_table("Yield", "Blend", "Crop")
figs = [data_piv.plot(kind='barh', figsize=[6,3]).get_figure() for i in range(6)]
plt.close('all')
horizontally_display(figs)
https://github.com/user-attachments/assets/924ba9cc-8ef0-433b-8314-5d537bc633ca
Description
different display between voila and notebook when using ipywidgets to combine dataframes. In voila, it's less readable.
Reproduce
https://github.com/user-attachments/assets/f00f5775-b5a3-4dc9-a601-d31e35ae0b5c
https://github.com/user-attachments/assets/b86c0bd9-3e67-4e4e-9196-dd2fe271205a
Expected behavior
the display in notebook is well readable. expected behavior is the same display as in notebook
Context
If using JupyterLab
Installed Labextensions