bondscell_results$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2queued¤logsrunning¦outputbody
Loading WASM...
mimetext/htmlrootassigneelast_run_timestampAvpersist_js_state·has_pluto_hook_features§cell_id$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2depends_on_disabled_cells§runtimel|published_object_keysdepends_on_skipped_cells§errored$256272d4-1ea3-40d5-953b-cffd2d4b1ba8queued¤logsrunning¦outputbody 
Loading WASM...
mimetext/htmlrootassigneelast_run_timestampApersist_js_state·has_pluto_hook_features§cell_id$256272d4-1ea3-40d5-953b-cffd2d4b1ba8depends_on_disabled_cells§runtime"published_object_keysdepends_on_skipped_cells§errored$6b5ff8b1-ec53-4b46-9980-44c4847d9eacqueued¤logsrunning¦outputbody*mini_repl (generic function with 1 method)mimetext/plainrootassigneelast_run_timestampAEpersist_js_state·has_pluto_hook_features§cell_id$6b5ff8b1-ec53-4b46-9980-44c4847d9eacdepends_on_disabled_cells§runtimerٵpublished_object_keysdepends_on_skipped_cells§errored$22770ba8-7bcc-484e-bec5-85629e340930queued¤logsrunning¦outputbodymissingmimetext/plainrootassigneelast_run_timestampAvpersist_js_state·has_pluto_hook_features§cell_id$22770ba8-7bcc-484e-bec5-85629e340930depends_on_disabled_cells§runtime'published_object_keysdepends_on_skipped_cells§errored$a074dec9-e8ab-4956-bfa3-24654d5c5274queued¤logsrunning¦outputbody
Loading WASM...
mimetext/htmlrootassigneelast_run_timestampANYpersist_js_state·has_pluto_hook_features§cell_id$a074dec9-e8ab-4956-bfa3-24654d5c5274depends_on_disabled_cells§runtimeIퟵpublished_object_keysdepends_on_skipped_cells§errored$a6139adc-e619-458b-8e53-02d89f482d28queued¤logsrunning¦outputbodymimetext/plainrootassigneelast_run_timestampAQװpersist_js_state·has_pluto_hook_features§cell_id$a6139adc-e619-458b-8e53-02d89f482d28depends_on_disabled_cells§runtimeepublished_object_keysdepends_on_skipped_cells§errored$bddc7a13-d524-42f6-b3c1-24bf63188cc5queued¤logsrunning¦outputbodyٔ

Exercise 5.2

👉 Write an expression that returns true. Given is x = 100

mimetext/htmlrootassigneelast_run_timestampANapersist_js_state·has_pluto_hook_features§cell_id$bddc7a13-d524-42f6-b3c1-24bf63188cc5depends_on_disabled_cells§runtime\published_object_keysdepends_on_skipped_cells§errored$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5queued¤logsrunning¦outputbodymimetext/plainrootassigneelast_run_timestampANpersist_js_state·has_pluto_hook_features§cell_id$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5depends_on_disabled_cells§runtimenpublished_object_keysdepends_on_skipped_cells§errored$49ed99c9-3d68-4e64-b292-45d8140fdd0dqueued¤logsrunning¦outputbodyd

Autograde simple exercises

Without a Julia process!

mimetext/htmlrootassigneelast_run_timestampANpŰpersist_js_state·has_pluto_hook_features§cell_id$49ed99c9-3d68-4e64-b292-45d8140fdd0ddepends_on_disabled_cells§runtimepublished_object_keysdepends_on_skipped_cells§errored$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2queued¤logsrunning¦outputbody[ mimetext/htmlrootassigneewasm_setuplast_run_timestampAppersist_js_state·has_pluto_hook_features§cell_id$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2depends_on_disabled_cells§runtime Tpublished_object_keysdepends_on_skipped_cells§errored$22fafdef-9765-427c-816d-04440a613307queued¤logsrunning¦outputbody

Julia WASM as a JS package

The Julia WASM build can be used to execute Julia code from JavaScript! This notebook shows off two use cases!

For more info, see the Julia WASM project and a demo of Pluto running inside WASM.

If you are interested in helping us with WASM development, please get in touch with me or Keno Fischer. If you find WASM interesting and useful, please spread the word!

mimetext/htmlrootassigneelast_run_timestampANC(persist_js_state·has_pluto_hook_features§cell_id$22fafdef-9765-427c-816d-04440a613307depends_on_disabled_cells§runtime͵published_object_keysdepends_on_skipped_cells§errored$5f82e865-213b-472d-a7a2-6dab4fc4caaequeued¤logsrunning¦outputbodyD

Julia REPL inside your browser

mimetext/htmlrootassigneelast_run_timestampANY`persist_js_state·has_pluto_hook_features§cell_id$5f82e865-213b-472d-a7a2-6dab4fc4caaedepends_on_disabled_cells§runtime(published_object_keysdepends_on_skipped_cells§errored$64bfadea-6390-413e-8f5a-f29a8b36e58fqueued¤logsrunning¦outputbody 
Loading WASM...
mimetext/htmlrootassigneemybondlast_run_timestampA'(persist_js_state·has_pluto_hook_features§cell_id$64bfadea-6390-413e-8f5a-f29a8b36e58fdepends_on_disabled_cells§runtime published_object_keysdepends_on_skipped_cells§errored$20209643-23ea-4f0c-bdf8-53c83d169ee9queued¤logsrunning¦outputbodyM
Loading WASM...
mimetext/htmlrootassigneelast_run_timestampA{$persist_js_state·has_pluto_hook_features§cell_id$20209643-23ea-4f0c-bdf8-53c83d169ee9depends_on_disabled_cells§runtime'>published_object_keysdepends_on_skipped_cells§errored±cell_dependencies$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2precedence_heuristic cell_id$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2downstream_cells_mapupstream_cells_mapmini_repl$6b5ff8b1-ec53-4b46-9980-44c4847d9eac$256272d4-1ea3-40d5-953b-cffd2d4b1ba8precedence_heuristic cell_id$256272d4-1ea3-40d5-953b-cffd2d4b1ba8downstream_cells_mapupstream_cells_mapmybond$64bfadea-6390-413e-8f5a-f29a8b36e58f$6b5ff8b1-ec53-4b46-9980-44c4847d9eacprecedence_heuristic cell_id$6b5ff8b1-ec53-4b46-9980-44c4847d9eacdownstream_cells_mapmini_repl$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2$20209643-23ea-4f0c-bdf8-53c83d169ee9$a074dec9-e8ab-4956-bfa3-24654d5c5274$64bfadea-6390-413e-8f5a-f29a8b36e58fupstream_cells_mapstringwasm_setup$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2HypertextLiteral.BypassHypertextLiteral.contentString@htlExprRealHypertextLiteral.ScriptTagHypertextLiteral.ResultHypertextLiteral$a6139adc-e619-458b-8e53-02d89f482d28Union$22770ba8-7bcc-484e-bec5-85629e340930precedence_heuristic cell_id$22770ba8-7bcc-484e-bec5-85629e340930downstream_cells_mapupstream_cells_mapcode$64bfadea-6390-413e-8f5a-f29a8b36e58f$a074dec9-e8ab-4956-bfa3-24654d5c5274precedence_heuristic cell_id$a074dec9-e8ab-4956-bfa3-24654d5c5274downstream_cells_mapupstream_cells_mapmini_repl$6b5ff8b1-ec53-4b46-9980-44c4847d9eac$a6139adc-e619-458b-8e53-02d89f482d28precedence_heuristiccell_id$a6139adc-e619-458b-8e53-02d89f482d28downstream_cells_mapHypertextLiteral$6b5ff8b1-ec53-4b46-9980-44c4847d9eac$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2upstream_cells_map$bddc7a13-d524-42f6-b3c1-24bf63188cc5precedence_heuristic cell_id$bddc7a13-d524-42f6-b3c1-24bf63188cc5downstream_cells_mapupstream_cells_map@md_strgetindex$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5precedence_heuristic cell_id$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5downstream_cells_mapupstream_cells_map$49ed99c9-3d68-4e64-b292-45d8140fdd0dprecedence_heuristic cell_id$49ed99c9-3d68-4e64-b292-45d8140fdd0ddownstream_cells_mapupstream_cells_map@md_strgetindex$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2precedence_heuristic cell_id$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2downstream_cells_mapwasm_setup$6b5ff8b1-ec53-4b46-9980-44c4847d9eacupstream_cells_mapHypertextLiteral.BypassHypertextLiteral.ResultHypertextLiteral$a6139adc-e619-458b-8e53-02d89f482d28@htl$22fafdef-9765-427c-816d-04440a613307precedence_heuristic cell_id$22fafdef-9765-427c-816d-04440a613307downstream_cells_mapupstream_cells_map@md_strgetindex$5f82e865-213b-472d-a7a2-6dab4fc4caaeprecedence_heuristic cell_id$5f82e865-213b-472d-a7a2-6dab4fc4caaedownstream_cells_mapupstream_cells_map@md_strgetindex$64bfadea-6390-413e-8f5a-f29a8b36e58fprecedence_heuristic cell_id$64bfadea-6390-413e-8f5a-f29a8b36e58fdownstream_cells_mapmybond$256272d4-1ea3-40d5-953b-cffd2d4b1ba8code$22770ba8-7bcc-484e-bec5-85629e340930upstream_cells_mapCoreBasePlutoRunner.create_bondPlutoRunnermini_repl$6b5ff8b1-ec53-4b46-9980-44c4847d9eac@bindCore.applicableBase.get$20209643-23ea-4f0c-bdf8-53c83d169ee9precedence_heuristic cell_id$20209643-23ea-4f0c-bdf8-53c83d169ee9downstream_cells_mapupstream_cells_mapmini_repl$6b5ff8b1-ec53-4b46-9980-44c4847d9eaccell_execution_order$a6139adc-e619-458b-8e53-02d89f482d28$22fafdef-9765-427c-816d-04440a613307$5f82e865-213b-472d-a7a2-6dab4fc4caae$49ed99c9-3d68-4e64-b292-45d8140fdd0d$bddc7a13-d524-42f6-b3c1-24bf63188cc5$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2$6b5ff8b1-ec53-4b46-9980-44c4847d9eac$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2$20209643-23ea-4f0c-bdf8-53c83d169ee9$a074dec9-e8ab-4956-bfa3-24654d5c5274$64bfadea-6390-413e-8f5a-f29a8b36e58f$22770ba8-7bcc-484e-bec5-85629e340930$256272d4-1ea3-40d5-953b-cffd2d4b1ba8last_hot_reload_timeshortpathjulia-wasm-in-js.jlprocess_statusreadypathI/home/runner/work/disorganised-mess/disorganised-mess/julia-wasm-in-js.jlpluto_versionv0.19.47last_save_timeAL떪cell_order$22fafdef-9765-427c-816d-04440a613307$5f82e865-213b-472d-a7a2-6dab4fc4caae$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2$49ed99c9-3d68-4e64-b292-45d8140fdd0d$bddc7a13-d524-42f6-b3c1-24bf63188cc5$20209643-23ea-4f0c-bdf8-53c83d169ee9$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5$a6139adc-e619-458b-8e53-02d89f482d28$22770ba8-7bcc-484e-bec5-85629e340930$6b5ff8b1-ec53-4b46-9980-44c4847d9eac$a074dec9-e8ab-4956-bfa3-24654d5c5274$64bfadea-6390-413e-8f5a-f29a8b36e58f$256272d4-1ea3-40d5-953b-cffd2d4b1ba8$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2published_objectsnbpkginstall_time_nsΪ0instantiatedòinstalled_versionsHypertextLiteral0.9.3terminal_outputsnbpkg_sync@ Instantiating... === Resolving... ===  No Changes to `/tmp/jl_yrgLFT/Project.toml`  No Changes to `/tmp/jl_yrgLFT/Manifest.toml` Precompiling... ===  Activating project at `/tmp/jl_yrgLFT`HypertextLiteral@ Instantiating... === Resolving... ===  No Changes to `/tmp/jl_yrgLFT/Project.toml`  No Changes to `/tmp/jl_yrgLFT/Manifest.toml` Precompiling... ===  Activating project at `/tmp/jl_yrgLFT`enabled÷restart_recommended_msgrestart_required_msgbusy_packageswaiting_for_permission,waiting_for_permission_but_probably_disabled«cell_inputs$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2cell_id$d78c56f5-4b9d-4451-8fc0-bd0f6dd0cbf2code%mini_repl(; default = "sqrt.(1:3)" )metadatashow_logsèdisabled®skip_as_script«code_folded$256272d4-1ea3-40d5-953b-cffd2d4b1ba8cell_id$256272d4-1ea3-40d5-953b-cffd2d4b1ba8codemybondmetadatashow_logsèdisabled®skip_as_script«code_folded$6b5ff8b1-ec53-4b46-9980-44c4847d9eaccell_id$6b5ff8b1-ec53-4b46-9980-44c4847d9eaccode function mini_repl(; default::String = "1 + 1", setup_code::String = "", dramatic_timeout::Real = 0, post_process_function_code::Union{Expr,String} = "identity", ) @htl("""
$(wasm_setup)
Loading WASM...
""") endmetadatashow_logsèdisabled®skip_as_script«code_folded$22770ba8-7bcc-484e-bec5-85629e340930cell_id$22770ba8-7bcc-484e-bec5-85629e340930codecodemetadatashow_logsèdisabled®skip_as_script«code_folded$a074dec9-e8ab-4956-bfa3-24654d5c5274cell_id$a074dec9-e8ab-4956-bfa3-24654d5c5274code;mini_repl(; setup_code = "x = 999", default = "x / 99", )metadatashow_logsèdisabled®skip_as_script«code_folded$a6139adc-e619-458b-8e53-02d89f482d28cell_id$a6139adc-e619-458b-8e53-02d89f482d28codeusing HypertextLiteralmetadatashow_logsèdisabled®skip_as_script«code_folded$bddc7a13-d524-42f6-b3c1-24bf63188cc5cell_id$bddc7a13-d524-42f6-b3c1-24bf63188cc5code\md""" #### Exercise 5.2 👉 Write an expression that returns `true`. Given is `x = 100` """metadatashow_logsèdisabled®skip_as_script«code_folded$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5cell_id$c350fc7c-e519-4e3d-802f-4cbdd6d6b9f5codemetadatashow_logsèdisabled®skip_as_script«code_folded$49ed99c9-3d68-4e64-b292-45d8140fdd0dcell_id$49ed99c9-3d68-4e64-b292-45d8140fdd0dcode@md""" ## Autograde simple exercises Without a Julia process! """metadatashow_logsèdisabled®skip_as_script«code_folded$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2cell_id$1bbc3534-1a99-421e-b947-7ff4e7e6e0a2codevwasm_setup = @htl(""" """) metadatashow_logsèdisabled®skip_as_script«code_folded$22fafdef-9765-427c-816d-04440a613307cell_id$22fafdef-9765-427c-816d-04440a613307code)md""" # Julia WASM as a JS package The Julia WASM build can be used to execute Julia code from JavaScript! This notebook shows off two use cases! For more info, see the [Julia WASM project](https://github.com/Keno/julia-wasm) and a demo of [Pluto running inside WASM](https://pluto-wasm-backend.netlify.app/editor.html). > If you are interested in helping us with WASM development, please get in touch with [me](https://github.com/fonsp) or [Keno Fischer](https://github.com/Keno). If you find WASM interesting and useful, please spread the word! """metadatashow_logsèdisabled®skip_as_script«code_folded$5f82e865-213b-472d-a7a2-6dab4fc4caaecell_id$5f82e865-213b-472d-a7a2-6dab4fc4caaecode+md""" ## Julia REPL inside your browser """metadatashow_logsèdisabled®skip_as_script«code_folded$64bfadea-6390-413e-8f5a-f29a8b36e58fcell_id$64bfadea-6390-413e-8f5a-f29a8b36e58fcodemybond = @bind code mini_repl()metadatashow_logsèdisabled®skip_as_script«code_folded$20209643-23ea-4f0c-bdf8-53c83d169ee9cell_id$20209643-23ea-4f0c-bdf8-53c83d169ee9code&mini_repl(; default = "sqrt(x) == 10", setup_code = "x = 100", dramatic_timeout = 0.5, post_process_function_code = quote result -> if !isa(result, Bool) "You should return true or false" elseif result == true HTML("
Correct!
") else HTML("
Keep working on it!
") end end )metadatashow_logsèdisabled®skip_as_script«code_folded«notebook_id$eeebc6be-4aa4-11f0-2990-f35221a7c9a1in_temp_dir¨metadata