Skip to content

No "Maximice" option at the moment of display dataframe in jupyter lab #182

Open
@jvaldiviezo9

Description

@jvaldiviezo9

Environment

  • Operating System: Windows 10
  • Python Version: 3.6
  • How did you install Qgrid: Conda
  • Python packages: $ pip freeze or $ conda list (please include qgrid, notebook, and jupyterlab versions)
# Name                    Version                   Build  Channel
anaconda-client           1.6.11                   py36_0
anaconda-navigator        1.7.0                    py36_0
anaconda-project          0.8.2            py36hfad2e28_0
asn1crypto                0.24.0                   py36_0
bleach                    2.1.2                    py36_0
ca-certificates           2017.08.26           h94faf87_0
certifi                   2018.1.18                py36_0
cffi                      1.11.4           py36hfa6e2cd_0
chardet                   3.0.4            py36h420ce6e_1
clyent                    1.2.2            py36hb10d595_1
colorama                  0.3.9            py36h029ae33_0
comtypes                  1.1.4                    py36_0
conda                     4.4.10                   py36_0
conda-env                 2.6.0                h36134e3_1
console_shortcut          0.1.1                h6bb2dd7_3
cryptography              2.1.4            py36he1d7878_0
cycler                    0.10.0           py36h009560c_0
decorator                 4.2.1                    py36_0
dfgui                     0.1                       <pip>
easygui                   0.98.1                    <pip>
entrypoints               0.2.3            py36hfd66bb0_2
freetype                  2.8                  h51f8f2c_1
html5lib                  1.0.1            py36h047fa9f_0
icc_rt                    2017.0.4             h97af966_0
icu                       58.2                 ha66f8fd_1
idna                      2.6              py36h148d497_1
intel-openmp              2018.0.0             hd92c6cd_8
ipykernel                 4.8.2                    py36_0
ipython                   6.2.1            py36h9cf0123_1
ipython_genutils          0.2.0            py36h3c5d0ee_0
ipywidgets                7.1.2                    py36_0
jedi                      0.11.1                   py36_0
jinja2                    2.10             py36h292fed1_0
jpeg                      9b                   hb83a4c4_2
jsonschema                2.6.0            py36h7636477_0
jupyter_client            5.2.2                    py36_0
jupyter_core              4.4.0            py36h56e9d50_0
jupyterlab                0.31.12                  py36_0
jupyterlab_launcher       0.10.5                   py36_0
libpng                    1.6.34               h79bbb47_0
libtiff                   4.0.9                h0f13578_0
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markupsafe                1.0              py36h0e26971_1
matplotlib                2.1.2            py36h016c42a_0
menuinst                  1.4.11           py36hfa6e2cd_0
mistune                   0.8.3                    py36_0
mkl                       2018.0.1             h2108138_4
msys2-conda-epoch         20160418                      1
nbconvert                 5.3.1            py36h8dc0fde_0
nbformat                  4.4.0            py36h3a5bc1b_0
nodejs                    8.9.3                hd6b2f15_0
notebook                  5.4.0                    py36_0
numpy                     1.14.1           py36h4a99626_1
olefile                   0.45.1                   py36_0
openssl                   1.0.2n               h74b6da3_0
pandas                    0.22.0           py36h6538335_0
pandoc                    1.19.2.1             hb2460c7_1
pandocfilters             1.4.2            py36h3ef6317_1
parso                     0.1.1            py36hae3edee_0
patsy                     0.5.0                    py36_0
pickleshare               0.7.4            py36h9de030f_0
pillow                    5.0.0            py36h0738816_0
pip                       9.0.1            py36h226ae91_4
plotly                    2.4.1                    py36_0
prompt_toolkit            1.0.15           py36h60b8f86_0
psutil                    5.4.3            py36hfa6e2cd_0
PyAutoGUI                 0.9.36                    <pip>
pycosat                   0.6.3            py36h413d8a4_0
pycparser                 2.18             py36hd053e01_1
pygments                  2.2.0            py36hb010967_0
PyMsgBox                  1.0.6                     <pip>
pyopenssl                 17.5.0           py36h5b7d817_0
pyparsing                 2.2.0            py36h785a196_1
pyperclip                 1.6.0                     <pip>
pyqt                      5.6.0            py36hb5ed885_5
PyScreeze                 0.1.14                    <pip>
pysocks                   1.6.7            py36h698d350_1
python                    3.6.4                h6538335_1
python-dateutil           2.6.1            py36h509ddcb_1
PyTweening                1.0.3                     <pip>
pytz                      2018.3                   py36_0
pywin32                   222              py36hfa6e2cd_0
pywinpty                  0.5.1                    py36_0
pyyaml                    3.12             py36h1d1928f_1
pyzmq                     16.0.3           py36he714bf5_0
qgrid                     1.0.1                    py36_1
qt                        5.6.2           vc14h6f8c307_12
qtpy                      1.3.1            py36hb8717c5_0
requests                  2.18.4           py36h4371aae_1
ruamel_yaml               0.15.35          py36hfa6e2cd_1
scipy                     1.0.0            py36h1260518_0
seaborn                   0.8.1            py36h9b69545_0
send2trash                1.5.0                    py36_0
setuptools                38.4.0                   py36_0
simplegeneric             0.8.1                    py36_2
sip                       4.18.1           py36h9c25514_2
six                       1.11.0           py36h4db2310_1
sqlite                    3.22.0               h9d3ae62_0
statsmodels               0.8.0            py36h6189b4c_0
terminado                 0.8.1                    py36_1
testpath                  0.3.1            py36h2698cfe_0
tk                        8.6.7                hcb92d03_3
tornado                   4.5.3                    py36_0
traitlets                 4.3.2            py36h096827d_0
urllib3                   1.22             py36h276f60a_0
vc                        14                   h0510ff6_3
vs2015_runtime            14.0.25123                    3
wcwidth                   0.1.7            py36h3d5aa90_0
webencodings              0.5.1            py36h67c50ae_1
wheel                     0.30.0           py36h6c3ec14_1
widgetsnbextension        3.1.4                    py36_0
win_inet_pton             1.0.1            py36he67d7fd_1
wincertstore              0.2              py36h7fe50ca_0
winpty                    0.4.3                         4
wxPython                  4.0.1                     <pip>
xarray                    0.10.1                   py36_0
xlrd                      1.1.0            py36h1cb58dc_1
xlwings                   0.11.7                   py36_0
yaml                      0.1.7                hc54c509_2
zlib                      1.2.11               h8395fce_2
  • Jupyter lab packages (if applicable): $ jupyter labextension list
JupyterLab v0.31.12
Known labextensions:
   app dir: C:\Users\Aristh\Anaconda3\share\jupyter\lab
@jupyter-widgets/jupyterlab-manager
        @jupyter-widgets/jupyterlab-manager v0.33.2 enabled  ok
@jupyterlab/plotly-extension
        @jupyterlab/plotly-extension v0.14.4 enabled  ok
qgrid
        qgrid v1.0.2 enabled  ok

Description of Issue

  • What did you expect to happen? No "Maximice" option at the moment of display dataframe in jupyter lab
  • What happened instead?
    The icon to "Maximice" the DataFrame is missing

Reproduction Steps

import numpy as np
import pandas as pd
import qgrid
randn = np.random.randn
df_types = pd.DataFrame({
    'A' : pd.Series(['2013-01-01', '2013-01-02', '2013-01-03', '2013-01-04',
               '2013-01-05', '2013-01-06', '2013-01-07', '2013-01-08', '2013-01-09'],index=list(range(9)),dtype='datetime64[ns]'),
    'B' : pd.Series(randn(9),index=list(range(9)),dtype='float32'),
    'C' : pd.Categorical(["washington", "adams", "washington", "madison", "lincoln","jefferson", "hamilton", "roosevelt", "kennedy"]),
    'D' : ["foo", "bar", "buzz", "bippity","boppity", "foo", "foo", "bar", "zoo"] })
df_types['E'] = df_types['D'] == 'foo'
qgrid_widget = qgrid.QgridWidget(df=df_types, show_toolbar=True)
qgrid_widget

Anything else?

In Jupyter Notebook it works as expected, but in Jupyter Lab, that option is missing.
I attach an image:
image

...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions