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

Solara doesn't render in Databricks notebook #129

Open
Ljupch0 opened this issue May 30, 2023 Discussed in #128 · 4 comments
Open

Solara doesn't render in Databricks notebook #129

Ljupch0 opened this issue May 30, 2023 Discussed in #128 · 4 comments

Comments

@Ljupch0
Copy link

Ljupch0 commented May 30, 2023

Discussed in #128

Originally posted by Ljupch0 May 30, 2023
Hi Maarten,

Thank you for your work!

In my use case I envisioned Solara as a extra nice UI option in shared Databricks Notebooks running on clusters. A way to give less technical users an interface without deploying separate apps, by using the Notebook environment for both authentication and compute.

However it seems that it cannot render:

image

Is there anything in the limitations section of this page that applies to Solara? https://learn.microsoft.com/en-us/azure/databricks/notebooks/ipywidgets

Unfortunately I cannot provide a reproducible example :(

@maartenbreddels
Copy link
Contributor

To summarize #128, the workaround for now is to do Page.widget()

@Ljupch0
Copy link
Author

Ljupch0 commented May 30, 2023

Thank you for all the help. I will keep the thread in this issue.

With Page.widget() it loads, but sidebars and headers are not displayed, only the main area content. I tried several examples with the same result. This one is from https://github.com/widgetti/solara/blob/master/solara/website/pages/apps/layout-demo.py
image

@maartenbreddels
Copy link
Contributor

Ah yes, you are losing some jupyter/solara magic because of this workaround. Try this:

@solara.component
def Workaround():
    with solara.components.applayout._AppLayoutEmbed():
        Page()
Workaround.widget()
@Ljupch0
Copy link
Author

Ljupch0 commented May 31, 2023

Workaround works!!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants