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

Data Explorer on Google Colab #6

Open
AksleyRios opened this issue Jan 20, 2020 · 6 comments
Open

Data Explorer on Google Colab #6

AksleyRios opened this issue Jan 20, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@AksleyRios
Copy link

Is there any way to run de data Explorer on a notebook placed on Google Colab??

@captainsafia captainsafia transferred this issue from nteract/nteract Jan 22, 2020
@captainsafia
Copy link
Member

Hello @AksleyRios! Thanks for opening this issue.

I'd recommend reaching out to the Google Colab team directly with this feature request. While the nteract organization creates the Data Explorer component, it is up to individual applications to integrate it into their notebook UIs.

@blois of the Google Colab team can point you to the correct place to open this feature request.

@blois
Copy link

blois commented Jan 22, 2020

Hi @AksleyRios!
It is possible to build Data Explorer in a way that will work in Colab, I put together an example of this a while back in https://colab.research.google.com/gist/blois/9ca9c4556b14f0cdb84d7fe1e5aee691/data-explorer.ipynb.

I haven't worked on this much outside of the initial prototype but I do really like Data Explorer and think it'd be great to get something more officially supported.

For Colab, we try to be as agnostic as possible to extensions like this and implemented a Data Table using a similar approach to what is used for the Data Explorer sample I linked above.

I think the approach I used for Data Explorer in Colab could also be used to enable it in JupyterLab and Jupyter Notebooks without any extensions needed and without any versioning issues- I'd be really interested in seeing a solution that just worked for everyone, everywhere, without any extensions needed.

@captainsafia
Copy link
Member

I think the approach I used for Data Explorer in Colab could also be used to enable it in JupyterLab and Jupyter Notebooks without any extensions needed and without any versioning issues- I'd be really interested in seeing a solution that just worked for everyone, everywhere, without any extensions needed.

I definitely agree with this idea! It'll reduce the friction around adoption of the Data Explorer and make it accessible to the wide majority of people who are using Jupyter classic.

Would you be willing to share how you went about building the prototype so we can make it an official part of the package?

cc: @emeeks Looks like @blois has done some interesting stuff to bring the Data Explorer to Colab. There might be some good ideas there we can generalize and bring to a larger audience.

@blois
Copy link

blois commented Jan 22, 2020

  1. It's basically just build rules to make a self-contained JS file of Data Explorer, the source code for that is at https://github.com/blois/standalone-dx.

  2. Then the binary is hosted in a versioned directory on a CDN- in this case just using github.io.

  3. The Python code is in the notebook linked above, ideally this would be on pypi.

@emeeks
Copy link
Member

emeeks commented Jan 22, 2020

I'd love to help, just let me know what to do. One thing, I think, would be to genericize the table (grid) view, because so many folks have their own preferred table/grid. Beyond that, I don't know what would best help folks to use it (in nteract and elsewhere).

@captainsafia
Copy link
Member

@emeeks It might be worthwhile to turn the work outlined above into a project for our GSoC participation. The technical scope seems manageable enough a student participant with experience in Python/JS.

I don't think we have bandwith to do the entire work any time soon but tackling it during the summer seems sensible. If this seems good to you, I can add it to our project page.

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

No branches or pull requests

5 participants