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

Add support for databricks notebook #10

Closed
pm-hwks opened this issue Feb 20, 2023 · 4 comments · Fixed by #19
Closed

Add support for databricks notebook #10

pm-hwks opened this issue Feb 20, 2023 · 4 comments · Fixed by #19

Comments

@pm-hwks
Copy link

pm-hwks commented Feb 20, 2023

What would it take to bring this to Databricks Notebooks ?

@Asm-Def
Copy link
Collaborator

Asm-Def commented Feb 21, 2023

Supported in PR #19 , and pre-released in 0.1.4a0.

screenshot

@Asm-Def Asm-Def linked a pull request Feb 21, 2023 that will close this issue
@Asm-Def Asm-Def closed this as completed Feb 21, 2023
Asm-Def pushed a commit that referenced this issue Feb 23, 2023
- Tested with Hex, mentioned in [#29 ](#29 (comment))
- Tested with Databricks, mentioned in [#10 ](#10 (comment))
- Tested with Jupyter Extension for VSCode, mentioned in [#21 ](#21)
- Supported with HTTP Servers to show data on web requests, mentioned in [#24 ](#24)
@CBezzAH
Copy link

CBezzAH commented Feb 28, 2023

It's not working for me in Databricks (Azure environment), I've tried both:
pygwalker-0.1.4.4
and
!pip install 'pygwalker>=0.1.4a0'
This is what I get when I try to render a df:

pygwalker - not working in Databricks

Also tried saving the output as a variable, that has the same result.

@Asm-Def
Copy link
Collaborator

Asm-Def commented Feb 28, 2023

It's not working for me in Databricks (Azure environment), I've tried both: pygwalker-0.1.4.4 and !pip install 'pygwalker>=0.1.4a0' This is what I get when I try to render a df:

pygwalker - not working in Databricks

Also tried saving the output as a variable, that has the same result.

I've also encountered the similar problem but got a different caution which said

If you've confirmed the restriction, you'd have to turn off the strict sandbox in User Settings to enable HTML output again.

图片

ObservedObserver pushed a commit that referenced this issue Mar 26, 2023
- Tested with Hex, mentioned in [#29 ](#29 (comment))
- Tested with Databricks, mentioned in [#10 ](#10 (comment))
- Tested with Jupyter Extension for VSCode, mentioned in [#21 ](#21)
- Supported with HTTP Servers to show data on web requests, mentioned in [#24 ](#24)
@jasongrout-db
Copy link

I just tried this out (cool package!), and found the following.

In Databricks cluster DBR version 11+, this works as long as strict sandboxing is turned off, as indicated in #10 (comment):

import pandas as pd
import pygwalker as pyg

iris = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv')
pyg.walk(iris)

For Databricks cluster DBR version 10.4, this seems to work:

import pandas as pd
import pygwalker as pyg

iris = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv')
displayHTML(pyg.walk(iris, return_html=True))

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

Successfully merging a pull request may close this issue.

4 participants