Skip to content

Instantly share code, notes, and snippets.

@yamaneko1212
Created March 15, 2024 15:44
Show Gist options
  • Save yamaneko1212/c6455de0118b79075232defb97135ed2 to your computer and use it in GitHub Desktop.
Save yamaneko1212/c6455de0118b79075232defb97135ed2 to your computer and use it in GitHub Desktop.
Djnago ViewにPygwalkerを組み込む
<div>
{{ pyg | safe }}
</div>
def pyg_view(request):
data = pandas.DataFrame([...])
context = {
"pygwalkrer": pygwalker.walk(data, return_html=True).to_html(),
}
return render(request, "pygwalker.html", context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment