Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow chainable show_grid in pandas #260

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions qgrid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from ._version import version_info, __version__

from . import pandas_decorator
from .grid import (
enable,
disable,
Expand All @@ -12,6 +13,7 @@
QGridWidget
)


def _jupyter_nbextension_paths():
return [{
'section': 'notebook',
Expand Down
7 changes: 7 additions & 0 deletions qgrid/pandas_decorator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from pandas import DataFrame
from .grid import show_grid

def _show_grid(df, **kwargs):
return show_grid(df, **kwargs)

DataFrame.show_grid = _show_grid