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

BeakerX interactive tables no longer being used by default in JupyterLab #7844

Closed
dhendry opened this issue Oct 31, 2018 · 2 comments
Closed

Comments

@dhendry
Copy link

dhendry commented Oct 31, 2018

import pandas as pd
from beakerx import *
beakerx.pandas_display_table()

and fails with

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-242a38fe0d48> in <module>
      1 import pandas as pd
      2 from beakerx import *
----> 3 beakerx.pandas_display_table()

NameError: name 'beakerx' is not defined

After looking at the commits, it seems like 2ec1122 is the culprit, and after calling the following, things work as expected:

import pandas as pd
from beakerx import *
runtime.BeakerX.pandas_display_table()

Not sure where the bug is here, not having the widget loaded by default or documentation being out of date.

For reference:

jupyter labextension list
JupyterLab v0.35.3
Known labextensions:
   app dir: XXXXXX
        @jupyter-widgets/jupyterlab-manager v0.38.1  enabled  OK
        beakerx-jupyterlab v1.2.0  enabled  OK
@jaroslawmalekcodete
Copy link
Contributor

Hi
because of #7766 we decided to move beakerx to beakerx.object so you need to import beakerx as follows

from beakerx.object import beakerx

for sure we will have to update the documentation

@LeeTZ
Copy link
Contributor

LeeTZ commented Nov 6, 2018

Thanks for the report, doc is updated and it should work well.

@LeeTZ LeeTZ closed this as completed Nov 6, 2018
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

3 participants