-
Notifications
You must be signed in to change notification settings - Fork 0
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
In jupyter, display(HTML(html_code))
only renders correctly the first time it's run
#2
Comments
@thorwhalen Sorry, I didn't mention that the jupyter notebook I made is for demonstration purposes only. When I created the javascript Cosmos bundle, I wanted to make sure it worked with the jupyter.Cosmos.issue.mp4 |
So what can we do about it? I took your stuff and made a function that would recreate the steps from data that would come from python. But as you see, since I'm using the javascript you created as the template, I have the same problem. If I had to hack it, I'd have my template create the data variable under a random name every time, so as to not collide with previous names. But it seems quite hacky and would probably fill the RAM. Could we define the data without the What's the best practice for this that you find in other python binders for JS? |
See the py_cosmograph repo (and With it I can do this: But as I mentioned, will have the same problem (see code -- namely my use of an html_template where I inject the data). |
You can find this (notebook) code here: https://github.com/cosmograph-org/cosmos-integrations/blob/feature/jupyter/packages/cosmos-jupyter/bak.ipynb |
See this video for details.
The text was updated successfully, but these errors were encountered: