<div dir="ltr">I'm going to swap back to brython instead of nbviewer or binder. Do you have any experience with brython, Vince?  I'll contact my Germany brython contact if he's available now.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 21, 2022 at 3:27 PM Vincent Marchetti <<a href="mailto:vmarchetti@kshell.com">vmarchetti@kshell.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I forgot to mention that the rendering of an .ipynb file on the github page can garble the markup.<br>
<br>
A more reliable way to see the notebook as a static rendering is to use the nbviewer page:<br>
<br>
<a href="https://nbviewer.org/github/vincentmarchetti/web3d2021_jupyter_tutorial/blob/main/HelloWorld.ipynb" rel="noreferrer" target="_blank">https://nbviewer.org/github/vincentmarchetti/web3d2021_jupyter_tutorial/blob/main/HelloWorld.ipynb</a><br>
<br>
to see this HelloWorld style example of putting an X3D scene in a Jupyter notebook<br>
<br>
Vince Marchetti<br>
<br>
<br>
> On Dec 21, 2022, at 4:16 PM, Vincent Marchetti <<a href="mailto:vmarchetti@kshell.com" target="_blank">vmarchetti@kshell.com</a>> wrote:<br>
> <br>
> A problem with the Jupyter notebook attached in this email was that the entire XML document, including the <xml...> declaration, was inserted into the <x3d> node for X3DOM to interpret, and that failed.<br>
> <br>
> There seem to be as many ways of inserting an <x3d> node for X3DOM into an notebook as there are authors, but the method I use is illustrated at<br>
> <br>
> <a href="https://github.com/vincentmarchetti/web3d2021_jupyter_tutorial/blob/main/HelloWorld.ipynb" rel="noreferrer" target="_blank">https://github.com/vincentmarchetti/web3d2021_jupyter_tutorial/blob/main/HelloWorld.ipynb</a> <br>
> <br>
> which is an attempt at illustrating the intent of John's notebook, to prepare the HelloWorld scene using the X3D python module, and then to render it in the notebook.<br>
> <br>
> I did note two problems in fully rendering the HelloWorld scene, pertaining to loading the image texture from the <a href="http://web3d.org" rel="noreferrer" target="_blank">web3d.org</a> site<br>
> 1. X3DOM only tries the first URL in the ImageTexture url field<br>
> 2. Even if the <a href="http://web3d.org" rel="noreferrer" target="_blank">web3d.org</a> url is put first, the <a href="http://web3d.org" rel="noreferrer" target="_blank">web3d.org</a> server is not configured to support the strict CORS protocol. As a result, the Firefox brower will retrieve the the image from <a href="http://web3d.org" rel="noreferrer" target="_blank">web3d.org</a>, but will not allow the x3dom code to see that data.<br>
> <br>
> The notebook referenced above from github will render the earth as a sphere and show the text in the X3D scene.<br>
> <br>
> Vince Marchetti<br>
> <br>
> <br>
> <br>
> <br>
> <br>
>> On Dec 21, 2022, at 5:08 AM, John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br>
>> <br>
>> <br>
>> <HelloWorld.ipynb>_______________________________________________<br>
>> x3d-public mailing list<br>
>> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
>> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
> <br>
> <br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
<br>
</blockquote></div>