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

Unable to render outside of a notebook context #217

Open
cpsievert opened this issue Nov 30, 2021 · 0 comments
Open

Unable to render outside of a notebook context #217

cpsievert opened this issue Nov 30, 2021 · 0 comments

Comments

@cpsievert
Copy link

The suggested way of getting standalong HTML from ipywidgets doesn't appear to work:

import numpy as np
import pandas as pd
from ipysheet import from_dataframe

dates = pd.date_range("20130101", periods=6)
df = pd.DataFrame(
    np.random.randn(6, 26),
    index=dates,
    columns=list(chr(ord("A") + i) for i in range(26)),
)

w = from_dataframe(df)

from ipywidgets.embed import embed_minimal_html

embed_minimal_html("index.html", w)
$ python3 -m http.server

Screen Shot 2021-11-30 at 10 06 05 AM

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

1 participant