# Julia notes Plots animations, need new coder for type Plots.AnimatedGif: objects with that type have a .filename property that points to the resulting gif file in /tmp. ```bash id=9a7a81e9-9ee7-40a8-995b-cd5be0366d53 mount ``` [docker-environment][nextjournal#docker-environment#61f7d7a3-16d9-4a55-a98f-9b76f7cc24ad] ```julia id=b84bc790-d139-42b2-b2cc-33806d7cafe9 kind = "plotlyjs" foo = Dict( :"content-type" => "application/json", :kind => kind, :metadata => Dict(:blorp => "blop")) #foo[:metadata] = [1,2,3] typeof(foo[:metadata]) bar = nothing bar = Dict() ``` [cubic.csv][nextjournal#file#aa8989d1-783d-4215-a517-5f4679e81784] adding pyplot for Plots, in addition to conda install of matplotlib [data_colormaps.csv][nextjournal#file#60646118-d135-4717-b4e1-9237ee95a961] [data_colormaps2.csv][nextjournal#file#089f2727-cdfa-4353-b09c-0e51081ee9b3] ```julia id=601e4632-67fb-40a7-808e-db3fb3a751b7 using CSV data_cmaps = CSV.read([reference][nextjournal#reference#15b48f08-4099-483e-a955-c4e091f7f46e]; escapechar='\\') cmaps = Dict() for name in names(data_cmaps) cmaps[name] = [eval(Meta.parse(line)) for line in data_cmaps[name]] end ``` ```julia id=c7337ec0-1fee-41b0-86f8-68199509ab74 circshift([1,2,3],1) ``` ```bash id=b0aa1fd9-bbfc-4feb-8193-7a60c0afc051 ``` [nextjournal#docker-environment#61f7d7a3-16d9-4a55-a98f-9b76f7cc24ad]: [nextjournal#file#aa8989d1-783d-4215-a517-5f4679e81784]: [nextjournal#file#60646118-d135-4717-b4e1-9237ee95a961]: [nextjournal#file#089f2727-cdfa-4353-b09c-0e51081ee9b3]: [nextjournal#reference#15b48f08-4099-483e-a955-c4e091f7f46e]: <#nextjournal#reference#15b48f08-4099-483e-a955-c4e091f7f46e>
This notebook was exported from https://nextjournal.com/a/CH6qCvba6DvXktGn1xa1zC?change-id=CKtFnEqTdYpLbiGhdUt6Xk ```edn nextjournal-metadata {:article {:settings nil, :nodes {"089f2727-cdfa-4353-b09c-0e51081ee9b3" {:id "089f2727-cdfa-4353-b09c-0e51081ee9b3", :kind "file"}, "15b48f08-4099-483e-a955-c4e091f7f46e" {:id "15b48f08-4099-483e-a955-c4e091f7f46e", :kind "reference", :link [:output "089f2727-cdfa-4353-b09c-0e51081ee9b3" "data_colormaps2.csv"]}, "601e4632-67fb-40a7-808e-db3fb3a751b7" {:compute-ref #uuid "9f4d4110-c896-11e8-a0c9-ade8b6deaffd", :exec-duration 592, :id "601e4632-67fb-40a7-808e-db3fb3a751b7", :kind "code", :output-log-lines {}, :runtime [:runtime "d3b0292a-d6e2-4536-b077-ff920a5923d0"]}, "60646118-d135-4717-b4e1-9237ee95a961" {:id "60646118-d135-4717-b4e1-9237ee95a961", :kind "file"}, "61f7d7a3-16d9-4a55-a98f-9b76f7cc24ad" {:id "61f7d7a3-16d9-4a55-a98f-9b76f7cc24ad", :kind "docker-environment", :docker/environment-image "eu.gcr.io/nextjournal-com/environment@sha256:c0b00e523b47d7e6dd41f587fc1b29a6a79402f747d30ab8463b22e7f3a6228c", :docker/import-image "eu.gcr.io/nextjournal-com/environment@sha256:c0b00e523b47d7e6dd41f587fc1b29a6a79402f747d30ab8463b22e7f3a6228c", :environment/name "test"}, "9a7a81e9-9ee7-40a8-995b-cd5be0366d53" {:compute-ref #uuid "b002daa0-c8ab-11e8-a0c9-ade8b6deaffd", :exec-duration 668, :id "9a7a81e9-9ee7-40a8-995b-cd5be0366d53", :kind "code", :output-log-lines {:stdout 38}, :runtime [:runtime "e19235f0-e249-4997-9fae-c88100b6beda"]}, "aa8989d1-783d-4215-a517-5f4679e81784" {:id "aa8989d1-783d-4215-a517-5f4679e81784", :kind "file"}, "b0aa1fd9-bbfc-4feb-8193-7a60c0afc051" {:id "b0aa1fd9-bbfc-4feb-8193-7a60c0afc051", :kind "code", :runtime [:runtime "e19235f0-e249-4997-9fae-c88100b6beda"]}, "b84bc790-d139-42b2-b2cc-33806d7cafe9" {:compute-ref #uuid "5e8ebd60-aa3d-11e8-ac93-73bb83261d03", :exec-duration 1127, :id "b84bc790-d139-42b2-b2cc-33806d7cafe9", :kind "code", :output-log-lines {}, :runtime [:runtime "ec1c0b50-1df4-4bb9-949e-ece34ee9afde"]}, "c7337ec0-1fee-41b0-86f8-68199509ab74" {:compute-ref #uuid "74bd9bf0-c8b1-11e8-a0c9-ade8b6deaffd", :exec-duration 801, :id "c7337ec0-1fee-41b0-86f8-68199509ab74", :kind "code", :output-log-lines {}, :runtime [:runtime "d3b0292a-d6e2-4536-b077-ff920a5923d0"]}, "d3b0292a-d6e2-4536-b077-ff920a5923d0" {:environment [:environment {:article/nextjournal.id #uuid "5b460d39-8c57-43a6-8b13-e217642b0146", :change/nextjournal.id #uuid "5bb07cef-41ab-4314-b473-7a3afc1da054", :node/id "87dc179f-a6bf-47af-8de7-806a6da04605"}], :id "d3b0292a-d6e2-4536-b077-ff920a5923d0", :kind "runtime", :language "julia", :type :nextjournal}, "e19235f0-e249-4997-9fae-c88100b6beda" {:environment [:environment {:article/nextjournal.id #uuid "5b45dad0-dfdf-4576-9b8c-f90892e74c94", :change/nextjournal.id #uuid "5b750a51-bd70-424c-9e46-864bc3dc85f5", :node/id "01204d2e-3c51-4802-88f3-a128e4d85a3e"}], :id "e19235f0-e249-4997-9fae-c88100b6beda", :kind "runtime", :language "bash", :type :nextjournal}, "ec1c0b50-1df4-4bb9-949e-ece34ee9afde" {:environment [:environment {:article/nextjournal.id #uuid "5b18ea0a-61b4-42dd-8743-7a4c62479773", :change/nextjournal.id #uuid "5b79b7be-159b-4ac9-8b16-844c4f06f6a7", :node/id "e8f2328c-62cf-4dca-849f-73746f78304c"}], :id "ec1c0b50-1df4-4bb9-949e-ece34ee9afde", :kind "runtime", :language "julia", :type :nextjournal}}, :nextjournal/id #uuid "5b5404e6-7c3b-4b6b-a811-7fb5a948624d", :article/change {:nextjournal/id #uuid "5bb78001-ed80-4ff0-b7f7-4e2a6d4e5253"}}} ```