Commit graph

1465 commits

Author SHA1 Message Date
José Valim b335e1c9cb
More doctests (#1544) 2022-11-23 15:06:08 +01:00
Alexandre de Souza 2eb601d32a
Improve authentication form feedback for the user (#1543) 2022-11-22 14:56:42 -03:00
José Valim b8997d6ce2
Use with: :clear_session on bad CSRF tokens 2022-11-22 16:38:49 +01:00
jonatanklosko 44732e4e59 Update assets 2022-11-19 14:10:26 +00:00
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
jonatanklosko 77d95778ce Update assets 2022-11-17 00:12:53 +00: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 dc5be4a241 Simplify webpack configuration 2022-11-12 02:16:02 +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 e30213bc83
Update WebSocket error responses (#1524) 2022-11-11 12:00:47 -03: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
Wojtek Mach dd68f4fe2c Add vendor/otp/erts-VSN/bin to additional paths on macOS
Just for consistency.
2022-11-02 19:06:42 +01:00
Wojtek Mach 7475e29232
Fix launching Windows desktop app (#1511)
On Windows we have erl.exe in two directories: OTP/bin/erl.exe and
OTP/erts-VSN/bin/erl.exe. The executable is identical but what is
different is the latter, the erts one, contains erlexec.dll which needs
to be present for the VM to start.

Interestingly, regardless of OS, the erl[.exe] executable always
prepends the OTP/erts-VSN/bin and OTP/bin directories to the PATH:

    iex> System.get_env("PATH") |> String.split(":") |> Enum.take(2)
    ["/Users/wojtek/.asdf/installs/erlang/25.1.2/erts-13.1.2/bin",
     "/Users/wojtek/.asdf/installs/erlang/25.1.2/bin"]

Manually prepending the erts bin directory to the PATH, which makes the
erl.exe that is to be launched to be the erts one, fixed the issue.
2022-11-02 18:19:53 +01:00
Jonatan Kłosko b911bd71ed Release 0.7.2 2022-10-26 22:19:37 +02:00
jonatanklosko e0e80ac844 Update assets 2022-10-25 13:34:59 +00:00
Kevin 2dd9e9f8d3
Make notebook_card clickable (#1501) 2022-10-25 15:33:15 +02:00
Wojtek Mach 7bf1904d8b Add /usr/local/bin after vendored paths 2022-10-24 15:47:18 +02:00
Wojtek Mach 83ab333a16 Remove unused code 2022-10-24 11:36:13 +02:00
Wojtek Mach 819d572511 Don't hardcode the location of erl.exe on windows 2022-10-24 11:35:20 +02:00
Wojtek Mach e152c9d1a7
Fix vendoring OTP (#1495)
Summary of changes:

- Vendor OTP at: rel/vendor/otp
- Remove rel/vendor/otp/lib/*/src
- Include /usr/local/bin in $PATH. This is not there by default and that's where homebrew (on x86_64) installs things so it should make it easier to build some packages with NIFs.
2022-10-24 10:56:16 +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
jonatanklosko 27a7297866 Update assets 2022-10-17 11:02:20 +00:00
Jonatan Kłosko ba193be13b
Expand relative URLs in HTML elements in Markdown (#1491) 2022-10-17 13:00:25 +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
josevalim 2554d08ed0 Update assets 2022-10-11 18:56:36 +00:00
José Valim e4cf6b939b Add spacing to secrets bottom 2022-10-11 20:54:16 +02:00
cristineguadelupe f4c350cdab Update assets 2022-10-11 17:57:42 +00: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
josevalim 35d11254f9 Update assets 2022-10-11 17:08:20 +00:00
José Valim 36ced79515 Tiny adjustments to style and responsiveness based on feedback 2022-10-11 19:06:21 +02:00
aleDsz a6897223a1 Update assets 2022-10-11 14:29:50 +00: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