Commit graph

50 commits

Author SHA1 Message Date
Michael Ruoss
282ffeba54
Add K8s runtime (#2756)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2024-09-18 13:56:17 +02:00
a-maze-d
7ec3976b7a
Extend configuration for update check to include version (#2780)
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2024-09-18 11:49:36 +02:00
a-maze-d
cc97d8c82c
Add configuration for update check to target a different repository (#2743) 2024-08-15 09:08:01 +02:00
Jonatan Kłosko
c5ba8f8f81
Introduce Fly.io runtime (#2708) 2024-07-15 06:19:04 +02:00
José Valim
3cc66a6ab9 Always redirect / to /apps if using teams auth 2024-07-04 10:49:31 +02:00
Jonatan Kłosko
81f6744a71
Refactor auth config (#2650) 2024-06-14 18:59:54 +02:00
José Valim
6f1e09e09b
Add LIVEBOOK_PROXY_HEADERS (#2604) 2024-05-14 13:22:17 +02:00
José Valim
6d7f416f18
Run Livebook Desktop without EPMD (#2591) 2024-05-08 10:05:01 +02:00
Jonatan Kłosko
8c91a1f788
Introduce abstraction for app deployment and permanent apps (#2524)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2024-03-26 20:20:07 +01:00
ByeongUk Choi
17634f9be7
Validate agent name and set default (#2483) 2024-02-13 09:27:25 +01:00
Alexandre de Souza
8ba6baec3a
Implements Livebook Agent authentication (#2403) 2024-01-05 14:17:39 -03:00
José Valim
f9b4d3703e Update aws_credentials, closes #2356 2023-12-22 15:29:03 +01:00
Jonatan Kłosko
d4aa41f5fd Fix feature flags 2023-12-19 15:15:11 +07:00
Jonatan Kłosko
0849678a98 Update LV 2023-12-19 15:09:47 +07:00
José Valim
43f40db59d
Make AWS credentials opt-in (#2358) 2023-11-16 13:57:28 +01:00
Michael B. Klein
fbcf3e5c50
Use aws_credentials for S3 file system if Access Key ID is missing (#2347) 2023-11-16 10:49:37 +01:00
José Valim
6ec335fce5
Move to Bandit (#2316) 2023-10-31 16:36:45 +01:00
José Valim
f8581c225d
Support audio transcription on drag and drop (#2227) 2023-09-25 18:45:19 +02:00
Alexandre de Souza
6ba0118c2d
Adds Livebook Teams URL and some touch ups (#2120) 2023-07-28 16:40:18 -03:00
Alexandre de Souza
07caffaecb
Add Offline Deployment section on the Hub Teams page (#2086) 2023-07-19 16:57:54 -03:00
Alexandre de Souza
932e43ac65
Implement Livebook Teams API (#1904) 2023-05-16 13:21:49 -03:00
José Valim
6ef803f95b Fix 404 rendering, closes #1826 2023-03-25 21:52:18 +01:00
José Valim
b3ff6e8a70 Speed up shutdown by reducing draining to 1000ms 2023-03-15 21:00:00 +01:00
Jonatan Kłosko
42bc98a42d
Remove storage abstraction (#1777) 2023-03-13 14:44:33 +01:00
GitStart
0990ab4cb2
Support allowlist for hyperlink schemes in Markdown content (#1702) 2023-02-15 22:16:38 +01:00
Jacques Lorentz
f4e836a5da
Base url path configuration variable (#1549) 2022-11-29 23:34:38 +01:00
José Valim
b8997d6ce2
Use with: :clear_session on bad CSRF tokens 2022-11-22 16:38:49 +01: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
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
Paulo Valim
285bc923b7
Rename the Explore section to Learn (#1424)
Co-authored-by: José Valim <jose.valim@gmail.com>
2022-09-21 12:06:22 +02:00
Alexandre de Souza
5c050e640f
Add Livebook Hub with Fly.IO integration (#1319) 2022-08-18 10:34:27 -03:00
ByeongUk Choi
bfd47fd166
Add app service settings (#1116) 2022-04-15 13:46:26 +02:00
José Valim
5acbd2efad
Add LIVEBOOK_SHUTDOWN_ENABLED (#1111)
* Add LIVEBOOK_SHUTDOWN_ENABLED

Previously we relied on code:get_mode(), but since
releases are starting in interactive mode to use
less memory, we need a clearer mechanism.

* Move shutdown feature check to Livebook.Config

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-04-14 15:52:28 +02:00
Jonatan Kłosko
75eb031719
Automate searching and adding new dependencies (#1081)
* Automate searching and adding new dependencies

* Restructure runtime management

* Leave search restrictions up to the runtime

* Support predefined dependencies in Embedded runtime dependency search

* Use the embedded runtime for dependency search test

* Fix typo

* Use module for loading embedded runtime dependencies

* Improve naming
2022-04-01 20:13:37 +02:00
Jakub Perżyło
86e4034f33
Persistent storage (#937)
Start moving filesystems as an initial implementation.
2022-01-30 19:51:03 +01:00
Jonatan Kłosko
3afa81f454
Add configuration for additional explore notebooks (#670)
* Add configuration for additional explore notebooks

* Update config/config.exs

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

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-11-02 22:32:58 +01:00
Jakub Perżyło
fbef386aa8
Allow importing a livebook via file upload #645 (#665) 2021-11-01 13:59:39 +01:00
Jonatan Kłosko
ac60aba2fb
Make it possible to configure custom plug for all requests (#576)
* Make it possible to configure custom plug for all requests

* Apply review comments

* Use fetch_env!
2021-10-05 00:44:27 +02:00
Jonatan Kłosko
c4a96bc99c
Add support for Mix runtime as the default one (#334)
* Add support for Mix runtime as a default

* Support default runtime options in the CLI

* Set cell status to queued while runtime is being started

* Clean up tests
2021-06-09 16:24:02 +02:00
Jonatan Kłosko
ea93edcc86
Add embedded runtime for evaluating code in the Livebook VM (#266)
* Add embedded runtime for evaluating code in the Livebook VM

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

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

* Use standard error proxy globally in the Livebook node

* Add configuration env variable for setting the default runtime

* Increase evaluation response assertion timeouts

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-05-10 14:37:38 +02:00
José Valim
57047f9c7f
Unify env variables and change auth to use session (#195) 2021-04-15 15:50:29 +02:00
Jonatan Kłosko
e9766ed7a5
Introduce token auth and add basic cli configuration (#148)
* Add token authentication

* Restructure CLI

* Allow port configuration

* Further refactoring

* Make sure livebook node starts with unique name

* Improve startup error handling

* Further refactoring

* Add authentication tests

* Add authentication view for entering the token

* Fix auth tests

* Always use random Livebook name for distribution

* Don't enable ANSI on Windows

* Define CLI Task behaviour and move generic logic to the main module

* Generalize convertion from cli arguments to configuration

* Randomly generate secret key base

* Update test/livebook_web/plugs/auth_plug_test.exs

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

* Override app config in persistent manner

* Update lib/litebook_cli.ex

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

* Move auth error to ErrorView

* Unify node name configuration and allow it via CLI

* Set all applications configs at once

* Move token generation to application.ex to work outside CLI

* Clean up overriding configuration

* Store auth token in separate cookies

* Update lib/livebook_cli/server.ex

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

* Update lib/livebook_web/endpoint.ex

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

* Update lib/livebook_web/plugs/auth_plug.ex

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

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-04-08 11:41:52 +02:00
Jonatan Kłosko
cc9d5a8103
Prevent from scrolling to top on modal open (#129)
* Render modal components at the end of live views

* Add error pages

* Restructure web module

* Update lib/livebook_web/templates/error/500.html.eex

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

* Update lib/livebook_web/templates/error/500.html.eex

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

* Update lib/livebook_web/views/error_view.ex

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

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-04-02 14:00:49 +02:00
Jonatan Kłosko
8b37e32e3a
Escript (#77)
* Set up Escript packaging

* Use MD5 digest sa ETAG

* Make sure changes to the static files recompile the relevant module

* Manually start the application in Escript

* Set up basic CLI

* Run formatter

* Start Elixir app before anything else

* Improve version output

* Build Escript to project root directory

* Improve assets handling

* Move plug related modules under plugs directory

* Include bundled assets in the repository

* Use the same plug with different static providers in prod and dev

* Refactor providers

* Rename StaticProvidedPlug to StaticPlug
2021-03-17 01:53:44 +01:00
Jonatan Kłosko
dae6d5c9c3
Rename project (#68)
* Rename references

* Update file and directory names

* Fix homepage tests
2021-03-03 22:56:28 +01:00
José Valim
309c9c8a51
Update to Elixir v1.11 and remove unused files (#32) 2021-02-16 12:29:41 +01:00
Jonatan Kłosko
79e5c432b3
Move evaluation to a separate Elixir runtime (#20)
* Isolate evaluation in separate node for each session

* Start new remote upon first evaluation and handle nodedown

* Add UI for managing evaluation node, improve naming and structure

* Show runtime initialization errors and some fixes

* Improve standalone node initialization

* Correctly handle multiple sessions connecting to the same node

* Fix session tests concerning evaluation

* Documentation and some refactoring

* Various improvements

* Configure schedulers to get to sleep immediately after evaluation

* Move EvaluatorSpervisor into the Remote namespace

* Fix evaluators cleanup

* Add tests

* Improve flash messages

* Introduce remote genserver taking care of cleanup

* Redefine the Runtime protocol to serve as an interface for evaluation

* Cleanup operations

* Use reference for communication with a standalone node

* Use shortnames for distribution by default

* Update node configuration and make sure epmd is running

* Rename Remote to ErlDist
2021-02-11 12:42:17 +01:00
José Valim
2dd88ec017 Add LiveView 2021-01-07 21:16:54 +01:00
José Valim
79792777a7 Initial commit 2021-01-07 20:56:24 +01:00