Questions tagged [qgrid]

13 questions
5
votes
0 answers

Alternative to Qgrid for displaying "pretty" dataframes in notebooks

I wanted to use some library to have better display of pandas dataframe in notebooks (ie allow sorting of columns, filters etc). Qgrid seemed like a good-enough choice and seems to do what I want. However the latest commit is 2 years old, so I…
lezebulon
  • 7,607
  • 11
  • 42
  • 73
4
votes
0 answers

'pandas.core' has no attribute 'index'

I want to use qgrid to test a machine learning model interactively. However when loading my dataframe into qgrid I have an error with the dataframe I'm loading: import qgrid import pandas # Import a CSV file and display it as a Qgrid widget df_test…
Revolucion for Monica
  • 2,848
  • 8
  • 39
  • 78
3
votes
2 answers

How do I make a table with clickable cells in jupyter notebook?

I have a table and a plot below, I need to make the plot to be updated whenever a table cell is clicked. ipywidgets library doesn't have a dedicated table widget. qgrid doesn't have a callback for cell selection, only for row selection (I suspect I…
Antony Hatchkins
  • 31,947
  • 10
  • 111
  • 111
2
votes
1 answer

jupyter labextension install of qgrid failed on optional dependency (windows)

When I try jupyter labextension install qgrid it fails, and the core error in the log file is the following: $ webpack --config webpack.prod.minimize.config.js [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve…
Denise Draper
  • 1,027
  • 10
  • 24
1
vote
0 answers

Cannot import qgrid in Python

I'm using Jupyter notebook and I have a problem with the qgrid package. I'm receiving this message: TypeError: register() missing 1 required positional argument: 'widget' I've tried changing the widget to 7.0 ('pip install ipywidgets~=7.0') but it…
1
vote
0 answers

QGRID: Is it possible to enable a left-right scrollbar when displayed in Jupyter notebook?

I checked the qgrid documentation, which is based on the SlickGrid library. The SlickGrid grid options do not show something. However it seems odd that a web based library would not allow scrolling left or right if all of the data does not fit…
rchitect-of-info
  • 1,150
  • 1
  • 11
  • 23
1
vote
0 answers

jupyter nbconvert to html: datatable and qgrid not shown in html output

Datatables and SlickGrid tables are not shown in the final html file after nbconvert'ing a previously executed ipynb file. The python libraries I am using are: qgrid https://github.com/quantopian/qgrid jupyter_datatables…
movingabout
  • 343
  • 3
  • 10
1
vote
0 answers

Display qgrid within the ipywidget tab

I'm trying to use qgrid to visualize dataframes together with some widgets. I have some issues displaying a grid inside a tab, if it is not active at the load. import pandas as pd import ipywidgets as widgets import numpy as np import qgrid out1 =…
kismsu
  • 1,049
  • 7
  • 22
0
votes
0 answers

How to get selected rows from qgrid in pyshiny

I'm using qgrid with pyshiny and I would like to detect what rows are selected in qgrid when the user presses a button: from shiny import App, render, ui, reactive import pandas as pd from shinywidgets import * import qgrid app_ui = ui.page_fluid( …
michael
  • 245
  • 2
  • 11
0
votes
0 answers

qgrid not showing output Python

I am trying to run the below mentioned query. It was also executed successfully but is not showing any kind of output. I am totally clueless about the same thing. Why is this happening? import pandas as pd import qgrid df = pd.DataFrame({'A': [1.2,…
0
votes
0 answers

Plotly v5.3.1 not working in Jupyterlab 3.1.18 (desktop version)

!jupyter labextension list the extensions: JupyterLab v3.1.18 C:\JupyterLab\resources\jlab_server\share\jupyter\labextensions jupyterlab-plotly v5.3.1 enabled ok @jupyter-widgets/jupyterlab-manager v3.0.1 enabled ok (python,…
Leon
  • 112
  • 3
  • 12
0
votes
1 answer

Interactive dataframe sorting using Google Colab

I've recently been trying to create an interactive plotting platform using a pandas dataframe in Google Colab. The idea is to either create my own or use an existing platform such as qgrid or Colab's Data Table. The problem with qgrid is that it…
Sam Rae
  • 1
  • 1
0
votes
1 answer

In Qgrid, is there a way to apply a default row filter when displaying the table

I cannot find in the documentation a way to show the qgrid table associated with my dataframe pre-filtered Imagine I have a dataframe like: df_types = pd.DataFrame({ 'A' : 1., 'B' : pd.Series(['2013-01-01', '2013-01-02', '2013-01-03', '2013-01-04', …
AleAve81
  • 275
  • 3
  • 8