# \`LoadError: value not writable for any mimetypes\` is thrown when plotting from @manipulate in Interact.jl

**URL:** <https://discourse.julialang.org/t/loaderror-value-not-writable-for-any-mimetypes-is-thrown-when-plotting-from-manipulate-in-interact-jl/29476>\
**Category:** General Usage\
**Tags:** package\
**Created:** [October 4, 2019, 8:22am UTC](https://discourse.julialang.org/t/loaderror-value-not-writable-for-any-mimetypes-is-thrown-when-plotting-from-manipulate-in-interact-jl/29476 "2019-10-04T08:22:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KestutisMa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kestutisma/32/7835_2.png) [@KestutisMa](https://discourse.julialang.org/u/KestutisMa)\
**Post date:** [October 4, 2019, 8:22am UTC](https://discourse.julialang.org/t/loaderror-value-not-writable-for-any-mimetypes-is-thrown-when-plotting-from-manipulate-in-interact-jl/29476/1 "2019-10-04T08:22:45Z")

</div>

I am using modified @manipulate example from [Tutorial · Interact](https://juliagizmos.github.io/Interact.jl/latest/tutorial/)  
and got `LoadError: value not writable for any mimetypes`.  
If I replace line `Makie.plot(x,y)` with `print(y)` then code is working. Makie.plot() function is working if run outside @manipulate. (Julia v1.2)  
What could cause that?

```julia
using Makie
import Blink, Interact
function run_all()
    x = y = 0:0.1:30

    freqs = OrderedDict(zip(["pi/4", "π/2", "3π/4", "π"], [π / 4, π / 2, 3π / 4, π]))

    s = Makie.plot(rand(5))
    display(s)
    mp = Interact.@manipulate for freq1 in freqs, freq2 in Interact.slider(0.01:0.1:4π; label = "freq2")
        y = @. sin(freq1 * x) * sin(freq2 * x)
        Makie.plot(x,y)
    end
    w = Blink.Window()
    Blink.body!(w, mp)
end
run_all()

```

```julia
ERROR: LoadError: value not writable for any mimetypes
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] richest_mime(::Scene) at C:\Users\Kestutis\.julia\packages\WebIO\2mZPb\src\render.jl:44
 [3] richest_html(::Scene) at C:\Users\Kestutis\.julia\packages\WebIO\2mZPb\src\render.jl:48
 [4] render(::Scene) at C:\Users\Kestutis\.julia\packages\WebIO\2mZPb\src\render.jl:20
 [5] map!(::typeof(WebIO.render), ::Array{Any,1}, ::FunctionalCollections.PersistentVector{Any}) at .\abstractarray.jl:2066
 [6] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::WebIO.Node{WebIO.DOM}) at
C:\Users\Kestutis\.julia\packages\WebIO\2mZPb\src\render.jl:161
 [7] show_pair(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::String, ::WebIO.Node{WebIO.DOM}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:241
 [8] show_pair(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Pair{String,Any}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:243
 [9] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Dict{String,Any}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:271
 ... (the last 3 lines are repeated 3 more times)
 [19] show_json at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:314 [inlined]
 [20] show_element(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::WebIO.Node{Scope}) at
C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:218
 [21] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Array{Any,1}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:293
 [22] show_pair(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::String, ::Array{Any,1}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:241
 [23] show_pair(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Pair{String,Any}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:243
 [24] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::Dict{String,Any}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:271
 [25] show_json(::JSON.Writer.CompactContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::JSON.Serializations.StandardSerialization, ::WebIO.Node{WebIO.DOM}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:314
 [26] #show_json#3 at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:325 [inlined]
 [27] show_json at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:324 [inlined]
 [28] print(::Base.GenericIOBuffer{Array{UInt8,1}}, ::WebIO.Node{WebIO.DOM}) at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:349
 [29] #sprint#342(::Nothing, ::Int64, ::typeof(sprint), ::Function, ::WebIO.Node{WebIO.DOM}) at .\strings\io.jl:107
 [30] sprint at .\strings\io.jl:103 [inlined]
 [31] json at C:\Users\Kestutis\.julia\packages\JSON\d89fA\src\Writer.jl:365 [inlined]
 [32] escape_json at C:\Users\Kestutis\.julia\packages\WebIO\2mZPb\src\util.jl:59 [inlined]
 [33] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::WebIO.Node{WebIO.DOM}) at C:\Users\Kestutis\.julia\packages\WebIO\2mZPb\src\render.jl:179
 [34] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::Widget{:manipulate,Any}) at C:\Users\Kestutis\.julia\packages\Widgets\451tD\src\widget.jl:135
 [35] __binrepr at .\multimedia.jl:157
[inlined]
 [36] _textrepr at .\multimedia.jl:149
[inlined]
 [37] #stringmime#6(::Nothing, ::typeof(Base64.stringmime), ::MIME{Symbol("text/html")}, ::Widget{:manipulate,Any}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Base64\src\Base64.jl:43
 [38] stringmime at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Base64\src\Base64.jl:43 [inlined]
 [39] #content!#6 at C:\Users\Kestutis\.julia\packages\Blink\AO8uN\src\content\api.jl:16 [inlined]
 [40] #content! at .\none:0 [inlined]
 [41] #body!#7 at C:\Users\Kestutis\.julia\packages\Blink\AO8uN\src\content\api.jl:19 [inlined]
 [42] body!(::Window, ::Widget{:manipulate,Any}) at C:\Users\Kestutis\.julia\packages\Blink\AO8uN\src\content\api.jl:19
 [43] run_all() at c:\Users\Kestutis\OneDrive - Lietuvos sveikatos mokslu universitetas\is Dropbox\Programming\gjJulia\sliderTest.jl:13
 [44] top-level scope at c:\Users\Kestutis\OneDrive - Lietuvos sveikatos mokslu universitetas\is Dropbox\Programming\gjJulia\sliderTest.jl:15
 [45] include_string(::Module, ::String, ::String) at .\loading.jl:1064
 [46] (::getfield(Main._vscodeserver, Symbol("##9#12")){String,Int64,Int64,String})() at c:\Users\Kestutis\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\terminalserver.jl:153
 [47] withpath(::getfield(Main._vscodeserver, Symbol("##9#12")){String,Int64,Int64,String}, ::String) at c:\Users\Kestutis\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\repl.jl:62
 [48] (::getfield(Main._vscodeserver, Symbol("##8#11")){String,Int64,Int64,String})() at c:\Users\Kestutis\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\terminalserver.jl:152
 [49] hideprompt(::getfield(Main._vscodeserver, Symbol("##8#11")){String,Int64,Int64,String}) at c:\Users\Kestutis\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\repl.jl:28
 [50] macro expansion at c:\Users\Kestutis\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\terminalserver.jl:148 [inlined]
in expression starting at c:\Users\Kestutis\OneDrive - Lietuvos sveikatos mokslu universitetas\is Dropbox\Programming\gjJulia\sliderTest.jl:15

```

---

<div class="post-metadata">

**Author:** ![Ouam74](https://avatars.discourse-cdn.com/v4/letter/o/b5a626/32.png) [@Ouam74](https://discourse.julialang.org/u/Ouam74)\
**Post date:** [June 17, 2020, 6:47pm UTC](https://discourse.julialang.org/t/loaderror-value-not-writable-for-any-mimetypes-is-thrown-when-plotting-from-manipulate-in-interact-jl/29476/2 "2020-06-17T18:47:54Z")

</div>

Dear Kestusis,

i have the same problem, i cannot render a Makie plot in Blink window…  
Were you able to solve the issue?

Thank you.  
Best Regards.  
Olivier.
