Replies: 14 comments 15 replies
-
Hi Ljupcho, Thank you for reporting this. Do you see an error in the JS console? Regards, Maarten |
Beta Was this translation helpful? Give feedback.
-
I cleared console before running the chunk with solara code. There is an error It seems to load for a second before the <!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script>
if (!String.prototype.endsWith) { // IE11
String.prototype.endsWith = function(search, this_len) {
if (this_len === undefined || this_len > this.length) {
this_len = this.length;
}
return this.substring(this_len - search.length, this_len) === search;
};
}
const hash = JSON.parse(decodeURIComponent(window.location.hash.substr(1)));
const userContentHost = '.databricksusercontent.com';
// only allow if sandboxed w/o allow-same-origin OR is on databricksusercontent.com
if (!document.domain ||
(document.domain && document.domain.endsWith(userContentHost))) {
window.addEventListener('message', function (msg) {
if (msg.data.frameId === hash.frameId && msg.data.type === 'injectHtml') {
// document.open(); // ommitted as it breaks Edge. see PR 30550
document.write(msg.data.content);
document.close();
} else {
console.error('iframe injection failed frameId check');
}
});
window.parent.postMessage({
frameId: hash.frameId,
type: 'requestInjection',
}, hash.parentUri);
}
</script>
</head>
<body></body>
</html> |
Beta Was this translation helpful? Give feedback.
-
Does a regular ipywidget work, e.g:
|
Beta Was this translation helpful? Give feedback.
-
Can you run two more tests: import ipyvue
ipyvue.Html(tag="h2", children=["test"]) and import ipyvuetify as v
v.Btn(children=["Do you see me?"]) |
Beta Was this translation helpful? Give feedback.
-
Didn't expect that! What about? box, rc = solara.render(Page())
box |
Beta Was this translation helpful? Give feedback.
-
O, many thanks! |
Beta Was this translation helpful? Give feedback.
-
So in the meanwhile I can call all pages as |
Beta Was this translation helpful? Give feedback.
-
@Ljupch0 - I think it's great that you're bringing this up here, but please also put a request in through your Databricks account rep. That works through our ticketing system and bumps the priority for internal people to work on this. (Disclaimer: I work at Databricks, and would love to see Solara working in it) |
Beta Was this translation helpful? Give feedback.
-
@jasongrout-db my best guess here is that on databricks, we mime bundle rendering gives higher priority to HTML, than the jupyter widget. The code path that gets triggered:
Which adds an HTML entry in the mime bundle that @Ljupch0 sees |
Beta Was this translation helpful? Give feedback.
-
The workarounds here didn't work for me 100% of times. It does work right after clearing the state in the notebook, but fails if I re-create the I did the following workaround to make sure the page is always displayed regardless of the state in the notebook:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I was using the workaround in the previous post successfully, recently the solutions found in this post started failing with the following error: |
Beta Was this translation helpful? Give feedback.
-
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:
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 :(
Beta Was this translation helpful? Give feedback.
All reactions