Commit graph

737 commits

Author SHA1 Message Date
José Valim 8f8f1db5d5 Use git dep 2022-08-24 18:08:17 +02:00
Alexandre de Souza aa663af95d
Allow hub routes to everyone (#1359) 2022-08-24 13:06:01 -03:00
Alexandre de Souza 3a085a5d30
Minor Hub improvements (#1357) 2022-08-24 12:35:28 -03:00
Jonatan Kłosko 2c28d1a0ca
List an exact match first in package search (#1355) 2022-08-24 10:59:26 +02:00
José Valim 942e0ca113 Update runtime livebook with new Kino features 2022-08-23 21:50:16 +02:00
José Valim 30344b0636
Create LayoutHelpers to encapsulate the whole home layout instead of sidebar (#1352) 2022-08-23 12:38:39 +02:00
José Valim 1e4ae42e6c Logger.warn -> Logger.warning 2022-08-23 08:44:01 +02:00
José Valim bb243a5964 Remove comment field from policy 2022-08-23 08:43:45 +02:00
Alexandre de Souza 77c8804d62
User and Hub forms with Changeset validations and input errors (#1347) 2022-08-22 18:12:54 -03:00
Jonatan Kłosko 4ce7df62e4 Fix whitespace in the text output copied to clipboard 2022-08-22 15:59:44 +02:00
José Valim ddc98edd5a Trim down S3 file system info 2022-08-19 23:26:11 +02:00
Alexandre de Souza 5c050e640f
Add Livebook Hub with Fly.IO integration (#1319) 2022-08-18 10:34:27 -03:00
Paulo Valim dcbf0d156c
Make the global sidebar collapsible (#1343)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-08-12 19:42:54 +02:00
José Valim b9b2f7514e
Support more recent Elixir versions too (#1344) 2022-08-12 19:04:15 +02:00
Jonatan Kłosko 3d5c7c3fad
Require Elixir 1.14 (#1342) 2022-08-11 20:13:57 +02:00
Caleb J. Acosta d59e2cf4b9
Add SVG as acceptable file type in markdown (#1341) 2022-08-11 09:20:19 +02:00
Jonatan Kłosko 82577828f8 Correctly update frames nested in grid 2022-08-10 12:38:22 +02:00
José Valim 74b0166453
Fix sidebar pane on small screens (#1338) 2022-08-09 19:32:53 +02:00
Jonatan Kłosko d24cb8a838
Queue cells on ctrl+shift+enter even when a cells is evaluating (#1334) 2022-08-05 22:19:50 +02:00
Jonatan Kłosko 7f4e9273de Add missing client id for smart cell JS view 2022-08-05 20:55:42 +02:00
Jonatan Kłosko e10f8374fd Add missing client id assign for layout outputs 2022-08-05 15:54:08 +02:00
Jonatan Kłosko 218bce5a63
Use binary ids for session clients (#1333) 2022-08-05 14:43:41 +02:00
Jonatan Kłosko c68df08849
Handle direct event messages in JS view channel (#1332) 2022-08-04 23:01:09 +02:00
Alexander Koutmos e8920257cd
Add support for anchor links during navigation (#1327) 2022-08-04 21:24:19 +02:00
Jonatan Kłosko 6853bbd9a1 Fix error recovery when serializing unknown structs in JS view payload 2022-08-04 01:14:00 +02:00
Jonatan Kłosko 194e31e2d9
Add support for layout outputs (#1326) 2022-08-04 00:24:15 +02:00
Jonatan Kłosko 4dc1deab24 Bump Elixir version on CI 2022-08-03 17:30:22 +02:00
José Valim 5cf9e2ba14 Align sidebar icons 2022-08-03 16:37:53 +02:00
Paulo Valim 43f5c383e0
Redesign sidebar (#1325)
Co-authored-by: José Valim <jose.valim@dashbit.co>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-03 15:50:27 +02:00
Jonatan Kłosko 920f70817e
Fix ignored output (#1323) 2022-08-02 19:33:43 +02:00
Jonatan Kłosko 4206e84682 Don't format elements with whitespace-pre 2022-08-02 18:22:49 +02:00
Jonatan Kłosko 3fcb6b97bb
Enable HEEx formatter (#1322) 2022-08-02 15:51:02 +02:00
Jonatan Kłosko 36ce11c211
Fix signature completion and signature types in older Erlang docs (#1318) 2022-08-02 11:29:45 +02:00
Cristine Guadelupe e5a02ac97e
Updates kino_maplibre and its guide (#1315)
* Updates kino_maplibre and its guide

* Update lib/livebook/notebook/explore/intro_to_maplibre.livemd

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-01 14:23:14 -03:00
birlorg 9b801f323f
Add how to use the math expressions (#1307) 2022-07-29 22:11:04 +02:00
José Valim 09c60abd5e
Validate hostname against EPMD (#1305) 2022-07-29 10:55:13 +02:00
José Valim 2ac02d9547 mix format 2022-07-25 21:50:59 +02:00
José Valim db6e459f64 Mark Kino guides as deep dive 2022-07-25 21:41:54 +02:00
Kuria 3cf175c81a
Add shortcut for evaluating a cell and advancing to the next one (#1294) 2022-07-23 12:22:17 +02:00
Basile Nouvellet 9cbecb6871
Fix typo in custom_kinos.livemd (#1292) 2022-07-22 21:30:21 +02:00
Frédéric Boyer 1ee1394fa6
Fix typo in the elixir and livebook notebook (#1284) 2022-07-19 21:53:15 +02:00
Wojtek Mach 8da05a5c5a
Rename AppBuilder to AppBundler (#1283) 2022-07-19 14:48:07 +02:00
José Valim 59dcf9e1ff mix format 2022-07-19 09:27:57 +02:00
José Valim 5c105d3d1f Use Livebook.Config.abort! in more occasions 2022-07-19 09:14:43 +02:00
Jonatan Kłosko 8ba302a9b4
Set colors in the MapLibre notebook (#1271) 2022-07-13 13:02:30 +02:00
Jonatan Kłosko 75e47aa593
Reflect input change when clicking the reevaluate button (#1269) 2022-07-11 14:35:05 +02:00
Jonatan Kłosko 1757e21bca
Fix user profile edits to not crash on the homepage (#1268) 2022-07-10 20:16:55 +02:00
Linus 14538b7aa1
Tiny improvements to explore livebooks (#1266)
* Tiny improvement in explanation of pattern matching

* remove reference to `Kino.Ecto`
2022-07-09 13:29:05 +02:00
Wojtek Mach 789a44a7da
Convert Mac launcher to a Cocoa app (#1263)
1. Add `:event_handler` app option. It is a process that will receive
   the app events, the `:open_app`, `{:open_url, url}`, and
   `{:open_file, path}` messages.

2. Add `AppBuilder.init/0`. This reads the `APP_BUILDER_INPUT` env
   variable which contains the app event the release was started with.

3. Use <https://github.com/wojtekmach/otp/tree/wm-WX_MACOS_NON_GUI_APP>
   branch which contains wx fix that hasn't been merged yet.
2022-07-06 19:27:06 +02:00
Cristine Guadelupe f9156e7a9f
Updates Map Cell guide (#1261) 2022-07-03 17:09:45 -03:00
José Valim 31b5e0b93a
List databases alphabetically (#1257) 2022-06-30 19:36:48 +02:00
Alexandre de Souza b95dee2aa4
Update KinoDB bult-ins (#1256)
* Add new KinoDB built-ins

* Update kino_db built-in version
2022-06-30 12:38:43 -03:00
José Valim bf6823240b Tiny fix to maps guide 2022-06-30 07:07:26 +02:00
Cristine Guadelupe 37c2cf1daa
Make styles available for all sections (#1253) 2022-06-30 06:57:10 +02:00
Jonatan Kłosko 5c0ad7ba1d
Fix nested frame updates (#1251) 2022-06-29 22:04:27 +02:00
Cristine Guadelupe cb0a208274
Guide for MapCell (#1250) 2022-06-29 07:50:05 -03:00
Jonatan Kłosko 60e44115d0
Handle Windows drive letter in Mix runtime path in the CLI (#1242) 2022-06-24 12:49:27 +02:00
Jonatan Kłosko a7d7e6332d
Change text inputs to apply change on blur (#1243) 2022-06-24 12:00:23 +02:00
aar2dee2 0c04f659c4
Capture log from processes outside Livebook supervision (#1235)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-06-23 13:39:27 +02:00
Hector Perez ef4e735b38
Add missing word in the VM introspection notebook (#1236) 2022-06-21 18:06:16 +02:00
ByeongUk Choi 8f4cafe264
Add link to Hexdocs in hover docs (#1221)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-06-14 01:21:42 +02:00
José Valim 5fd896409d
Delay update instructions (#1217)
This gives us time to update desktop artifacts
and, in case we mess something up, it avoids
everyone upgrading to a broken release at the
same time.
2022-06-05 10:04:55 +02:00
Wojtek Mach fc82b55dab
Desktop icon improvements (#1201) 2022-05-27 14:45:20 +02:00
Andy Tran f945b3272d
Add support for configuring a custom iframe URL (#1200)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-05-26 02:39:55 +02:00
ByeongUk Choi 0a87fee7b6
Add sidebar toggle on mobile (#1183)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
Co-authored-by: José Valim <jose.valim@gmail.com>
2022-05-19 16:27:57 +02:00
José Valim b1bd411199
Add tiny section on links (#1196) 2022-05-19 12:05:23 +02:00
Tw 641ac96ae7
Fix relative link URL in Markdown output (#1189) 2022-05-17 03:03:18 +02:00
José Valim fce28ed713
Reduce left padding for notebook session (#1186)
* Reduce left padding for notebook session

* Update lib/livebook_web/live/session_live.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-05-13 17:54:36 +02:00
Jonatan Kłosko 355a450d4c
Fix smart cell evaluation button in forked notebooks (#1185) 2022-05-13 15:22:52 +02:00
Jonatan Kłosko 36e48f861e
Use IP address as hostname when configured (#1181)
* Use IP address as hostname when configured

* Use localhost for access URL hostname when applicable

* Keep 0.0.0.0 as is for hostname
2022-05-13 15:22:41 +02:00
José Valim 49492771f3 Ignore asset directories if they are empty
macOS removes files from the temporary directory but
keeps the directory. This would cause LiveView to
misbehave as it would assume all assets are checked out.
2022-05-13 14:41:06 +02:00
Aaron Seigo 2a8c95c388
Show the correct amount of free memory available on the system (#1179)
* Show the correct amount of free memory available on the system

Attempts to use the `available_memory` stat, otherwise tries to
cobble it together using cached+buffered+free as per the erlang
docs on `:memsup:get_system_memory_data` and only failing that
flals back to `free_memory`

* Use `Map.new` rather than `Enum.into`

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Update lib/livebook/system_resources.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-05-09 15:43:00 +02:00
Jonatan Kłosko 9f24bda2c8
Specify ip for iframe endpoint only when present (#1176)
* Specify ip for iframe endpoint only when present

* Up
2022-05-06 22:11:19 +02:00
José Valim cfcd1cdc19 Match on more eaddrinuse patterns 2022-05-06 10:30:06 +02:00
José Valim 7ef0de2722
Improve ip server booting (#1173)
* Bind to the same ip as the main application

* Improve error message if port is already taken
2022-05-06 10:27:48 +02:00
Jonatan Kłosko 567c69a884
Always expand the setup cell when focused (#1166) 2022-05-03 16:20:13 +02:00
Jonatan Kłosko 9a016e439d
Synchronize smart cell source before evaluation (#1164)
* Synchronize smart cell source before evaluation

* Sync JS view only if present

* Synchronize with smart cell only when started

* Update references to kino packages

* Update the Smart cells notebook

* Rename add dependnecy to add package

* Update changelog
2022-05-03 15:09:37 +02:00
Jonatan Kłosko ba77c18616
Clear cells indicator after erasing outputs (#1160) 2022-05-02 15:37:15 +02:00
Jonatan Kłosko df87b2c7fc
Rename toggle output in zen mode to show/hide (#1161) 2022-05-02 15:29:42 +02:00
José Valim 2e104b2677 Review some policies 2022-05-02 12:13:22 +02:00
Jonatan Kłosko 2a1d937189
Update wording around dependencies and packages (#1151) 2022-04-30 17:14:10 +02:00
Jonatan Kłosko 8e063792ff
Improvements to the smart cells flow (#1150)
* Reword reinstall to restart

* Clarify Smart cell message when dependencies are installing

* Handle universal shortcuts in inside iframe inputs

* Adjust smart cell icons

* Improve wording in the dependency install prompt

* Reevaluate cells after installing smart cell dependencies

* Update lib/livebook_web/live/session_live/cell_component.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-04-30 12:26:03 +02:00
Jonatan Kłosko 8f72d0175e
Update references to kino (#1148)
* Update references to kino

* Update changelog

* Make the Chart cell section branching

* Apply suggestions from code review

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Capitalization

* Add link to the Iris dataset

* Pass keys to Process.info/2

Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-04-29 13:45:33 +02:00
ByeongUk Choi d11084d32f
Add shared mode to Livebook sessions (#1128)
* add shared mode (working)

* add markdown write permission

* Add authorize handle_event

* Revert "add shared mode (working)"

This reverts commit c1e9ebac4d.

* Add assert_policy!

* Apply suggestions code review

* Apply suggestions from code review

* Apply suggestions from code reviews (redirect)

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Add PolicyHook

* remove assert_live_action_access!/1

* Apply suggestions from code review

* Apply suggestions from code review

* Update lib/livebook_web/live/session_live.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-04-28 13:01:53 +02:00
Jonatan Kłosko f39699b65e
Update instructions in the Elixir export (#1144) 2022-04-25 13:37:15 +02:00
Jonatan Kłosko 94dc3862a3
Use more specific scope for custom kinos (#1142) 2022-04-25 12:01:48 +02:00
Jonatan Kłosko 5ee612df40
Add a notebook on Smart cells (#1141) 2022-04-24 12:19:39 +02:00
Wojtek Mach e5092e4c99
Add taskbar icon to desktop app (#1119) 2022-04-21 09:51:48 +02:00
Jonatan Kłosko ba3ac8ca3d Fix wording in the Elixir and Livebook notebook 2022-04-20 13:50:38 +02:00
Jonatan Kłosko 4e49b6e643
Add insert button for diagrams (#1134) 2022-04-19 16:51:46 +02:00
Jonatan Kłosko b570fcffe3 Fix wording 2022-04-19 11:32:00 +02:00
Jonatan Kłosko 609409e842
Encapsulate pubsub subscriptions (#1132) 2022-04-19 11:29:38 +02:00
José Valim d0a98f88f2
Organize settings page (#1133)
* Fix indentation in HTML format

* Adds more spacing between items

* Use horizontal lines to better mark the sections,
  unless the header itself is followed by a table.

Those changes are inspired by GitHub's current
settings page.
2022-04-19 11:29:26 +02:00
Jonatan Kłosko 6e66c80120
Keep memory usage state at the root on homepage (#1129)
* Keep memory usage state at the root on homepage

* Update lib/livebook/system_resources.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-04-18 18:06:04 +02:00
José Valim 4248de6003
Refresh memory when closing/disconnecting sessions (#1124)
* Refresh memory when closing/disconnecting sessions

* Fixes
2022-04-18 16:16:39 +02:00
Jonatan Kłosko 134fbe0589
Show information when a new Livebook version is available (#1121)
* Show information when a new Livebook version is available

* Wording

* Use more precise version comparison

* Update lib/livebook/application.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Up

* Update notificaion styles

* Update lib/livebook_web/live/home_live.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Update lib/livebook_web/live/home_live.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Apply review comments

* Use async_nolink

Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-04-18 00:55:08 +02:00
José Valim 78b9a11d8c
Remove outdated steps in distributed portal example 2022-04-16 18:02:58 +02:00
Jonatan Kłosko 87c27b5be7
Link to cloud instance when system memory is low (#1122)
* Link to cloud instance when system memory is low

* Update wording and add link
2022-04-15 23:52:33 +02:00
ByeongUk Choi 120eb2d0ef
Redirect after authentication (#1112)
* auth token mode routes /authentication

* redirect after authentication with session

* Apply code review

* Apply suggestions from code review

* Apply suggestions from code review
2022-04-15 14:24:35 +02:00
José Valim f451646d73
Labeled text block (#1117)
* Make labeled text a block

* Add link
2022-04-15 14:23:41 +02:00