-
Notifications
You must be signed in to change notification settings - Fork 76
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
Interact destroyes Image display via markdown in Jupyter... :( #267
Comments
Can you reproduce the error without RISE? For me everything is working fine (though I'm testing it without PyPlot as I can never manage to install it...). |
This MWE (that I have indeed tested) does not use RISE. Well, RISE is one of the installed addons I have but I did not "fire up" the RISE mode or anything. |
Note that you don't need markdown cells: you can put in images with WebIO (they could even become part of your GUI). For example: node(:img, src = "https://user-images.githubusercontent.com/19669089/46616661-56771380-cb1b-11e8-8ddb-cbbab002fecd.png", style = Dict("width" => "40%")) Note that you can use AssetRegistry to serve local assets with WebIO: using AssetRegistry
key = AssetRegistry.register("path/to/asset")
node(:img, src = key) A couple of questions:
|
Thank you, doing
works. But I find it kind of "bad" to have to display "weird code" just to show an image.... I'll have to use it for now though. |
Does passing a remote URL work? For example: <img src="https://user-images.githubusercontent.com/19669089/46616661-56771380-cb1b-11e8-8ddb-cbbab002fecd.png" width=40%/> |
lol.... this works yeah !!!!! |
I'm still confused as to what the local path is supposed to do / whether AssetRegistry is somehow messing up with it: will investigate. OTOH, I'm happy to now that RISE is working with Interact. EDIT: for files stored locally it is quite interesting, the old syntax: <img src="files/cardiac.png" width=40%/> still works (using the "files" prefix), whereas the simpler <img src="cardiac.png" width=40%/> does not work (I finally managed to reproduce the issue, was doing something silly before). |
Closing as a duplicate of JuliaGizmos/AssetRegistry.jl#3 |
MWE:
Create a Julia cell in Jupyter. Do
using PyPlot
.Create a markdown cell, and add:
Here is the image: cardiac_tissue_doubling to use.
When you do this, it displays fine. Now add one more Julia cell and do:
and run it. Interact will work properly.
Now go back to the Markdown cell, edit it and run it. The image doesn't display anymore !!! :( :( :(
The argument "just never run the markdown cell again" is invalid, because I am doing a RISE presentation.
p.s.: as my presentation is due to be done soon, I'd appreciate a workaround even if this can't be fixed on time...
The text was updated successfully, but these errors were encountered: