Commit graph

781 commits

Author SHA1 Message Date
Jonatan Kłosko 15754c9c99
Add support for image input (#1538) 2022-11-19 15:08:00 +01:00
Jonatan Kłosko c0fa414593 Fix default chunks info 2022-11-17 20:46:17 +01:00
Jonatan Kłosko 16d473685a
Fix input value lookup for nested inputs (#1537) 2022-11-17 15:15:54 +01:00
Jonatan Kłosko ce93015a0d
Add support for multi-chunk smart cell source (#1536) 2022-11-17 12:36:06 +01:00
Nick Sergeant 84361fb207
Add help text for how to access secrets in the secrets sidebar (#1535)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-11-17 01:11:06 +01:00
Jonatan Kłosko 42d2386a2d
Fix reading inputs rendered in the same evaluation (#1531) 2022-11-15 15:13:05 +01:00
Jonatan Kłosko 9c9c54de65
Delete defined modules if evaluation fails (#1528) 2022-11-12 19:39:59 +01:00
Jonatan Kłosko 3504bac3f6 Don't define doctests case if there are no modules 2022-11-11 21:58:53 +01:00
Jonatan Kłosko 81fccfd436
Automatically run doctests when a module is defined (#1525) 2022-11-11 21:49:51 +01:00
Alexandre de Souza 4bf292ec43
Force body background color to white (#1523) 2022-11-11 11:48:21 -03:00
Frank Hunleth 52e5273401
Support passing an MFA for customizing shutdown (#1519)
This commit lets you customize Livebook shutdown to gracefully power
off. One use case is for Nerves-based devices that need to do more than
call `System.stop/0` to power off.

This doesn't change the `LIVEBOOK_SHUTDOWN_ENABLED` environment
variable. It still works the same.

The `:shutdown_enabled` configuration is now `:shutdown_callback`. Valid
values are `nil` or an MFA. An unset or `nil` callback hides the
shutdown button in the UI.
2022-11-10 18:09:01 +01:00
Jonatan Kłosko 31c119a633
Persist modules bytecode to disk (#1521) 2022-11-10 16:37:57 +01:00
José Valim 27e7535a42 Make configs consistent 2022-11-10 16:04:53 +01:00
Alexandre de Souza 1cd92366d8
Allow Livebook to run inside iframes (#1520) 2022-11-10 16:02:59 +01:00
Jonatan Kłosko 936146e52c
Improve reproducability of module definitions (#1518) 2022-11-09 18:22:27 +01:00
Jonatan Kłosko 484e47142a
Track evaluation dependencies and cache results (#1517) 2022-11-09 14:40:44 +01:00
Alexandre de Souza 7b1addb7eb
Use WebSocket and Protobuf instead of GraphQL with Livebook Enterprise (#1504) 2022-11-03 13:49:07 -03:00
Kevin 2dd9e9f8d3
Make notebook_card clickable (#1501) 2022-10-25 15:33:15 +02:00
José Valim d392e8d4ab Clarify that env vars are specific to this machine 2022-10-20 19:55:38 +02:00
Jonatan Kłosko 23e071386b
Fix units in byte formatting (#1494) 2022-10-20 11:56:10 +02:00
Hugo Baraúna 567b7af459
Update links to map libre and kino vega lite libs (#1492)
* Update links to map libre libs

* Updates link to KinoVegaLite
2022-10-18 15:52:08 +02:00
Jonatan Kłosko 2063cf9485
Move file system actions into a menu (#1484) 2022-10-13 15:31:06 +02:00
GitStart 577a1b7eb6
Allow a file system to be set as default in the UI (#1450) 2022-10-13 15:16:52 +02:00
José Valim e4cf6b939b Add spacing to secrets bottom 2022-10-11 20:54:16 +02:00
Cristine Guadelupe 06e9cc6828
Delete and view secrets from the sidebar (#1473)
* Delete secrets from sidebar

* Collapsible secret detail

* Secret details layout

* Secret details layout adjustments

* Hover and text color for secret details

* Changes switch_button colors to have more contrast

* small adjustment

* Uses remove and add class everywhere

* Uses JS.toggle
2022-10-11 14:55:36 -03:00
José Valim 36ced79515 Tiny adjustments to style and responsiveness based on feedback 2022-10-11 19:06:21 +02:00
Alexandre de Souza 19773a0e36
Add Enterprise Hub (#1449) 2022-10-11 11:27:27 -03:00
José Valim 5c053a9573
Always sync livebook secrets with session (#1477) 2022-10-11 16:12:14 +02:00
Abhijit Kar ツ 41347c51be
Infer hostname automatically in CLI for attached mode (#1474) 2022-10-11 13:25:54 +02:00
José Valim 711368bf0c Update Env Var copy 2022-10-10 10:14:06 +02:00
Jonatan Kłosko 1639435024
Update references to kino packages (#1467) 2022-10-07 12:19:20 +02:00
Jonatan Kłosko 734ea7dc0c Improve wrapping in error outputs 2022-10-07 12:01:00 +02:00
José Valim 950982304d
Final touchups to secrets (#1464)
* Use font-mono on secret names
* Unify error handling with changesets
* Unify put_env/delete_env as set_env/unset_env
* Review text and descriptions
2022-10-06 21:44:04 +02:00
Jonatan Kłosko 195bc502fd Update changelog 2022-10-06 20:13:36 +02:00
José Valim cf7ad7f17a
Provide shared facade in Storage module (#1463) 2022-10-06 19:53:37 +02:00
Cristine Guadelupe 4c83317453
Notebook secrets (#1457)
* Store secrets in the notebook

* Automatically grants access to secrets

* Put notebook secrets on session

* Shows secrets as a list

* Grant access message box

* Grant access confirmation on select

* Applying suggestions - grant access confirmation

* Handles unavailable secrets

* Toggle secrets

* Session only secrets

* Sync secrets

* Fix delete runtime secret

* Clean up

* Component helpers

* Does not store secrets in notebooks

* Store Livebook secrets

* Fix sync secrets

* Tests for secrets

* Doesn't refetch livebook_secrets

* Removes unused function

* More test for secrets

* Livebook secrets as maps

* Fix secret tests

* Applying suggestions

* All secrets as a map

* Shows grant access for missing secret errors

* Unifies grant access

* Fix set_runtime_secrets

* Applying suggestions

* Updates sync secrets tests

* Fix active secret

* Unifies prefill secret name
2022-10-06 13:41:26 -03:00
Jonatan Kłosko 4b9392f7ac
Add a clarification for editor shortcuts (#1460)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-10-04 11:56:52 +02:00
José Valim e9149dc343
Require fewer clicks to save a notebook (#1458) 2022-10-04 10:56:11 +02:00
José Valim 6da00daffd
Update to LV 0.18 (#1426) 2022-10-04 08:46:55 +02:00
José Valim 6d8ca1fe8d Align livebook logos 2022-10-04 08:22:58 +02:00
José Valim 85268bd083 Move sidebar close inside sidebar (similar to ExDoc) 2022-10-04 00:04:59 +02:00
José Valim e92d9910fa Say Connect for runtime if there is no connection 2022-10-04 00:04:59 +02:00
Jonatan Kłosko 964f4b04d1
Keep stacktrace if all of it is pruned (#1455) 2022-10-03 13:49:19 +02:00
Jonatan Kłosko 2de629d605
Ignore orphan logs in the attached runtime (#1451) 2022-09-30 21:05:46 +02:00
ByeongUk Choi 3aa34393c5
Change Hexdocs link caption (#1444) 2022-09-28 14:48:25 +02:00
Cristine Guadelupe d494e58c6a
Secrets modal title from options (#1443)
* Secrets modal title from options

* Applying suggestions
2022-09-27 23:25:07 -03:00
Cristine Guadelupe 72ea4cebf9
Secrets modal - new layout (#1441)
* Secrets modal - new layout

* Layout adjustments

* Layout adjustments

* Applying suggestions

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

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

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-09-27 17:26:21 -03:00
Jonatan Kłosko 1a824d4091 Show sidebar on desktop 2022-09-26 11:07:09 +02:00
Paulo Valim 3626dca875
Improve sidebar behaviour on mobile (#1434)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-09-26 10:00:00 +02:00
Jonatan Kłosko 76d2127170
Update introduction to Kino (#1435) 2022-09-23 16:03:51 +02:00