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

Without importing beakerx, pandas dataframe output is by default forced to be rendered using widgets?! #7766

Closed
pybokeh opened this issue Aug 21, 2018 · 5 comments
Assignees

Comments

@pybokeh
Copy link

pybokeh commented Aug 21, 2018

Hi, after installing beakerx, when I do df.head(), the output of my dataframe is a nice, javascript widget of the dataframe even when I haven't imported beakerx. Also, when I want to save the .ipynb as html, the resulting html file doesn't display the dataframe. I see from this that I can revert to default pandas dataframe rendering, but why by default, my pandas dataframe is being rendered with the beakerx javascript widget without even importing beakerx? This is strange or unexpected behavior.

Also, when I uninstall beakerx, now I can't render my pandas dataframe at all! It seems my jupyter installation is now no good. So I re-installed beakerx, and now I can render my dataframe. Is there a proper way to uninstall beakerx without messing up my pandas dataframe rendering capability?

I uninstalled by first doing:
beakerx uninstall, then did pip uninstall beakerx

@LeeTZ
Copy link
Contributor

LeeTZ commented Aug 22, 2018

Thanks for the report we will definitely look into that.
In the meantime, you could get the HTML table back by:

beakerx.pandas_display_default()

@dclong
Copy link

dclong commented Aug 24, 2018

Actually I reported this issue before and it was fixed. Don't know why this issue come up again.

#6794

@NumesSanguis
Copy link

Having the same issue with beakerx 1.1.0 that without any import it's being used, but I have the additional problem that tables don't show up anymore at all: #7819 (includes info about my conda env setup)

@LeeTZ LeeTZ closed this as completed Oct 22, 2018
@pybokeh
Copy link
Author

pybokeh commented Nov 1, 2018

@LeeTZ beakerx.pandas_display_default() doesn't work for me.

Error message:
AttributeError: module 'beakerx' has no attribute 'pandas_display_default'

beakerx version==1.0

@whiteboxbatteries
Copy link

@LeeTZ beakerx.pandas_display_default() doesn't work for me.

Error message:
AttributeError: module 'beakerx' has no attribute 'pandas_display_default'

beakerx version==1.0

Per https://nbviewer.jupyter.org/github/twosigma/beakerx/blob/master/doc/python/TableAPI.ipynb,
you actually want to call:
beakerx.object.beakerx.pandas_display_default()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants