Commit graph

53 commits

Author SHA1 Message Date
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
Ed Bond 9eb5cbde2c
Security focused alternative image (#2526) 2024-04-22 22:48:42 +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
Alexandre de Souza 8ba6baec3a
Implements Livebook Agent authentication (#2403) 2024-01-05 14:17:39 -03:00
José Valim 43f40db59d
Make AWS credentials opt-in (#2358) 2023-11-16 13:57:28 +01:00
Jonatan Kłosko 8710090274
Use shorter ids for cells and sections (#2350) 2023-11-15 17:33:43 +01:00
José Valim c9d0c05bcc
Custom identity providers (#2301) 2023-10-25 09:44:09 +02:00
Jonatan Kłosko b603639b77
Include default secret key base and cookie in apps Dockerfile (#2294) 2023-10-24 14:41:49 +02:00
Jonatan Kłosko d2e875a94f
Add env var for debug logs (#2292) 2023-10-23 20:01:05 +02:00
Jonatan Kłosko 06b553275f
Add Dockerfile variant for clustered deployment on Fly.io (#2286)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-10-22 17:23:15 +02:00
Victor Rodrigues 94edf9f8b9
Support custom HTTP certificate (#2287)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-10-22 11:01:15 +02:00
José Valim 64dad900d7
Exclude modules from docs (#2218)
Closes #2216.
2023-09-21 12:28:45 +02:00
José Valim 8041d8ee9a Remove create hub feature flag, warn if using production servers in dev 2023-08-03 22:19:01 +02:00
José Valim 7c40ab22e3
Warn if session is missing after reboot (#2128)
Closes #2075.
2023-08-01 19:12:38 +02:00
Jonatan Kłosko 32a98ff0af Improve code docs 2023-07-28 02:04:52 +02:00
Jonatan Kłosko 904ebd093f
Serially setup apps before deploying from directory (#2115)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-26 20:23:44 +02:00
Alexandre de Souza f4365e44d2
Enforce Hub when deploying notebooks from LIVEBOOK_APPS_PATH (#2039) 2023-07-07 15:27:07 -03:00
Cristine Guadelupe 29b712917e
ZTA - user identity (#2015)
* Get user identity

* Moves current_user_id to identity_data

* Renames cookies to session_identity

* Keep zta keys in the state

* User id from GoogleIap

* Update cloudflare.ex

* Update googleiap.ex

* Email only for ZTA

* Get the current_user_id from the identity_data

* Applying suggestions

* Applying suggestions

* Fix verify_token

---------

Co-authored-by: José Valim <jose.valim@gmail.com>
2023-06-29 23:10:00 +02:00
Cristine Guadelupe efb28fbdf0
Support Zero Trust authentication (#1938)
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-06-21 00:25:25 +02:00
Alexandre de Souza 932e43ac65
Implement Livebook Teams API (#1904) 2023-05-16 13:21:49 -03:00
José Valim 4b8834c599
Do not stop booting if apps path is unavailable (#1812) 2023-03-21 12:33:53 +01:00
Jonatan Kłosko dd5e1af23b
Persist app settings and support deployment from directory (#1741)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-02-28 21:37:43 +01:00
Jonatan Kłosko 40c5044a60
Add initial support for apps (#1709) 2023-02-16 13:47:46 +01:00
GitStart 0990ab4cb2
Support allowlist for hyperlink schemes in Markdown content (#1702) 2023-02-15 22:16:38 +01:00
Zach Allaun 8f92661918
Support setting node and distribution using environment vars (#1672) 2023-02-01 21:22:49 +01:00
Jonatan Kłosko 52d6835388
Support config updates when adding smart cell deps to Mix.install/2 (#1560) 2022-12-03 16:23:43 +01:00
Jacques Lorentz f4e836a5da
Base url path configuration variable (#1549) 2022-11-29 23:34:38 +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
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
José Valim 608979471d
Remove Mix standalone runtime, closes #1345 (#1370)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-29 14:20:24 +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
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
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 2a1d937189
Update wording around dependencies and packages (#1151) 2022-04-30 17:14:10 +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
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
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
ByeongUk Choi e3d9c5fa35
allow embedded runtime by env (#1084)
* allow embedded runtime by env

* fix session live test

* This reverts commit f36931d6ef9b..81ca7d

* allow runtime modules

* Apply suggestions from code review
2022-04-04 12:20:36 +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
ByeongUk Choi 1fab2f54bf
Add LIVEBOOK_FORCE_SSL_HOST env (#1064)
Closes #983.
2022-03-23 18:24:58 +01:00
Jonatan Kłosko ca27bb157f
Refactoring (#994)
* Group all runtime messages under a common prefix

* Move output specification ot the Runtime protocol

* Update doc comments

* Livebook.Evaluator -> Livebook.Runtime.Evaluator

* Livebook.ContentLoader -> Livebook.Notebook.ContentLoader

* Livebook.UniqueTask -> Livebook.Utils.UniqueTask

* Add import/export delegates to Livebook.LiveMarkdown
2022-02-10 12:15:41 +01:00
Jonatan Kłosko e5e13d86c2
Serve iframes from another local port when running on http (#989)
* Serve iframes from another local port when running on http

* Use relative hostname in local iframe URL

* Simplify server start check

* Use random iframe port when Livebook runs on a random port

* Rename space/ to iframe/

* LivebookWeb.IframePlug -> LivebookWeb.IframeEndpoint
2022-02-08 14:45:58 +01:00
José Valim efdbf67f59
Introduce LIVEBOOK_HOME and LIVEBOOK_DATA_PATH (#963)
And move the relevant configurations to settings.
2022-01-31 11:51:57 +01: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 f0606b109d
Automatically back up notebooks without a file (#736)
* Improve file select layout on long paths

* Automatically back up notebooks without a file

* Run formatter

* Add margin when there are no sections

* Add an informative note about autosave directory

* Store autosave path instead of file in the config

* Rename autosave dir to autosave path

* Fix insert mode escape on section headlines

* Show ellipsis on selected file too

* Always create the default directory

* Apply review comments
2021-12-04 16:29:14 +01:00
Jonatan Kłosko 54511d5ffc
Add env var for disabling token auth (#696) 2021-11-10 13:54:50 +01:00
José Valim 354aae9467
Encapsulate compile and runtime configuration (#577) 2021-10-05 00:49:01 +02:00