Commit graph

384 commits

Author SHA1 Message Date
Jonatan Kłosko
47d29cb389
Require Elixir 1.13 ()
* Bump required Elixir version to 1.13 and fix TODOs

* Fix tests

* Remove the deprecated URI.parse/1

* Bump Docker base image

* Bump Elixir on CI
2021-12-03 21:47:20 +01:00
Jonatan Kłosko
ac6b423e79
Fix frame rendering ()
* Fix frame rendering

* Add test for the dynamic frame
2021-12-03 18:59:08 +01:00
Jonatan Kłosko
6de1dd84c2
Fix long section names alignment () 2021-12-03 15:18:48 +01:00
José Valim
2c91de3cd6
Streamline introductory notebooks () 2021-12-03 15:17:09 +01:00
Jonatan Kłosko
04f15f60a3
Add Pong notebook to the explore section () 2021-12-03 15:08:28 +01:00
Jonatan Kłosko
4debf2c1fb
Fix evaluation timer on page refresh () 2021-12-03 14:23:50 +01:00
Jonatan Kłosko
0b6acb9d34
Hide reconnect runtime button once reconnected () 2021-12-03 14:03:06 +01:00
Jonatan Kłosko
264d6c3ff2
Add support for controls output type ()
* Add support for controls output type

* Split controls into individual widgets

* Adjust ids

* Improve widget and controls garbage collection

* Allow arbitrary functions as object release hook

* Add type to button and input events

* Add keyboard status event

* Change release hooks into monitor messages

* Rename pointer to reference and return an error on bad monitor
2021-12-02 16:45:00 +01:00
Alexandre de Souza
79d6a9e6a2
Rename restart runtime to reconnect ()
* Rename restart runtime to reconnect

* Update lib/livebook_web/live/output.ex

Co-authored-by: José Valim <jose.valim@gmail.com>
2021-12-01 17:21:49 +01:00
Jonatan Kłosko
c2636b8220
Migrate inputs to Kino ()
* Migrate inputs to Kino

* Update lib/livebook/session/data.ex

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

* Try parsing numbers as integers

* Garbage collect input values

* Adjust tests

* Remove unused variable

* Fix frame rendering

* Wrap inputs in border depending on its type

* Add textarea

* Reorder

* Update tests

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-11-25 18:43:42 +01:00
Jonatan Kłosko
f64dd0ea90
Restructure j/k navigation to support headlines ()
* Accessibility fixes

* Restructure j/k navigation to support headlines

* Focus modal content when open

* Further focus adjustments

* Fix tests

* Remove unused functions
2021-11-16 21:57:10 +01:00
Jonatan Kłosko
4d92aeba2e
Support file scheme when importing from URL ()
* Add test

* Support file scheme when importing from URL
2021-11-12 15:49:22 +01:00
José Valim
d78a3cf865
Include reason if we can't start Livebook, closes () 2021-11-12 14:36:02 +01:00
Jonatan Kłosko
247abd8f57
Add section on Kino.animate and bump dependencies ()
* Add section on Kino.animate and bump dependencies

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

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

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

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

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-11-10 22:16:42 +01:00
Jonatan Kłosko
7eac7a83ac
Implement clipboard copy with JS commands () 2021-11-10 20:17:32 +01:00
Jonatan Kłosko
3ed5da0106
Implement menu with JS commands and extract into component () 2021-11-10 19:28:09 +01:00
Jonatan Kłosko
d81965ee99
Redesign runtime panel and sessions list ()
* Redesign runtimes panel

* Redesign session list

* Add session sort

* Move session list to a separate component

* Up
2021-11-10 18:50:39 +01:00
Jonatan Kłosko
54511d5ffc
Add env var for disabling token auth () 2021-11-10 13:54:50 +01:00
Jonatan Kłosko
d8d52c9e89
Add runtime info panel ()
* Add runtime info panel

* Remove intro from the runtime modal

* Show default runtime in the panel if no runtime is set
2021-11-09 18:37:22 +01:00
José Valim
e67428e918
Simplify fun with vm instrospection ()
If we want to show process specific information,
we can create branches in the future that receive
a PID input, reach out to the remote node, and
show the data using markdown.
2021-11-09 11:04:18 +01:00
Jonatan Kłosko
c473a8c469
Add an option to amplify cell outputs ()
* Add an option to amplify cell outputs

* Reorder actions
2021-11-09 10:45:05 +01:00
Jonatan Kłosko
0b30fd02d9
Add support for frame_dynamic output type () 2021-11-08 20:45:30 +01:00
Jonatan Kłosko
e72a606dd2
Warn on invalid sequence of notebook comments () 2021-11-08 13:14:55 +01:00
Jonatan Kłosko
6bf2f9cb7a
Revert wording in code formatting configuration () 2021-11-05 20:04:50 +01:00
José Valim
767a12ab77
Show reevaluate true example () 2021-11-05 08:15:14 +01:00
José Valim
49a406b579
Branch from setup on Kino guide () 2021-11-05 08:14:29 +01:00
Jonatan Kłosko
982a345ddc
Improve notebook file locking to work across nodes ()
* Improve notebook file locking to work across nodes

* Add node check for local file system opreations

* Replace node with host id

* Refactor process down cleanup

* Scope local file system with node

* local? -> type
2021-11-05 00:29:04 +01:00
Jonatan Kłosko
5e5bc2597a
Document how to render notebooks on GitHub ()
* Document how to render notebooks on GitHub

* Keep any comments before the notebook title heading
2021-11-04 18:50:53 +01:00
Cocoa
a15ec1ca1d
Save static vegalite plot to livemd ()
* save static vegalite plot to livemd

* cleanup debug code

* using `vega-lite` as the type in the fenced code block

* wrap the text output in `{:text, output}` in take_outputs/2

* ignore :vega_lite_static when it is empty

* add import and export tests

* using `spec`

* format code

* keep the test focused

* improve tests for not including outputs

* always dump vage_lite spec

* Apply suggestions from code review

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-11-04 12:17:03 +01:00
Jonatan Kłosko
8c923f7bda
Show new directory section immediately on the client () 2021-11-03 17:16:09 +01:00
Jonatan Kłosko
ad4867ddfb
Refactor modals with JS commands ()
* Use JS commands for closing the modal with animations

* Refactor modal to render content as slot

* Bump LV
2021-11-02 22:34:44 +01:00
Jonatan Kłosko
3afa81f454
Add configuration for additional explore notebooks ()
* 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
Jonatan Kłosko
fbd03d6725
Update Phoenix LV ()
* Wrap live routes in live_session

* Update Phoenix LV

* Migrate to live_component component call

* render_block -> render_slot

* phx-disconnected -> phx-loading

* phx-capture-click -> phx-click-away

* Add hook dealing with current user

* Bump LV

* Bump LV
2021-11-01 19:33:43 +01:00
Jonatan Kłosko
021d6ac42e
Improve icon buttons accessibility and navigation ()
* Rename tooltip source attribute

* Add aria-label to icon buttons/links

* Actually focus cell content when navigating around

* Add some descriptions

* Fix dynamically computed tooltips
2021-11-01 18:20:56 +01:00
Jakub Perżyło
ace64eab37
Add show/hide button for password inputs ()
* Added visibility toggle for password cell

* Formatted code

* Moved password toggle to separate component

* Adjusted to review

* Added password toggle for add filesystem component

* Update lib/livebook_web/helpers.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-11-01 16:04:11 +01:00
Jakub Perżyło
fbef386aa8
Allow importing a livebook via file upload () 2021-11-01 13:59:39 +01:00
Jonatan Kłosko
2694007c0e
Compute cell snapshots when an existing notebook is given () 2021-11-01 13:59:04 +01:00
Jean Carlos
421b1c69a1
Show indicators of state on session sidebar ()
* Added range input (Slider)
* Added range input (Slider)
* Custom css to range input

* Formatting correction

* Defined min and max values of input range

* Revert "Defined min and max values of input range"

This reverts commit 815167ab0f.

* Added input select

* working with a options like list

* Formatting correction

* swapped li for inputs in input settings

* Removed unused attribute

* Final adjustments

* Improve users connected display

* Update lib/livebook_web/live/session_live.ex

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

* Update lib/livebook_web/live/session_live.ex

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

* Adjust elements

* Change favicon based on notebook status

* Format correction

* "operation" is unused

* Improvements for better functioning of icons

* Renamed icons files

* Update favicons

* Update changelog

* Show indicators of state on session sidebar

* Changes to status colors

* Improve spacing

* Scroll to cell on status click

* global_evaluation_status -> global_status

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-11-01 13:15:21 +01:00
Kian Meng Ang
e16c8a5dab
Fix typos () 2021-10-31 07:14:35 +01:00
Jonatan Kłosko
dbccadfdcf
Redesign save to file modal ()
* Redesign save to file

* Always show Save when a file is present

* Fix indentation
2021-10-30 12:02:26 +02:00
Jonatan Kłosko
529339c8a2
Remove configuration env vars on boot ()
* Remove configuration env vars on boot

* Update lib/livebook/application.ex

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

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-10-29 20:49:25 +02:00
Jonatan Kłosko
ac1a4a5ffb Add action for clearing evaluation and outputs ()
* Move notebook export menu item

* Add action for clearing evaluation and outputs

* Test data operation

* Update wording

* Update wording

* Reorder menu items
2021-10-29 16:34:44 +02:00
José Valim
8a0d218cbe The first address for a shortname must be the one that matches 2021-10-29 16:29:27 +02:00
Jonatan Kłosko
4493a60380
Improve runtimes UI ()
* Show reconnect for all runtime types when applicable

* Make it clear which runtime is the default

* Show Mix.install restart suggestion only for standalone runtimes

* Fix tests not to rely on the default runtime tab
2021-10-28 19:41:07 +02:00
José Valim
8fe8d27d3d Allow any address we might be listening on 2021-10-27 17:27:52 +02:00
Jonatan Kłosko
386fe5b531 Redesign flash message snackbars 2021-10-27 17:04:33 +02:00
Jonatan Kłosko
394c6daef1
Improve validity check when input changes during evaluation () 2021-10-27 15:36:50 +02:00
Jonatan Kłosko
6ba5d0017a
Allowapplication/octet-stream content type for import () 2021-10-27 13:49:03 +02:00
Jonatan Kłosko
c1a6bc1aa8
Remove reactive inputs () 2021-10-27 13:35:24 +02:00
gpopides
5c0267b547
Added automatic cell evaluation ()
* Added automatic evaluation

* apply review changes

* persist reevaluate_automatically and update test

* test for automatic reevaluation

* formatting

* Add import test

* Always show if a cell automatically reevaluates and link to settings

* Evaluate automatically reevaluating cells after queuing

* Always show evaluate button when cell is fresh

* Update icon

* Add test ensuring that fresh cells don't evaluate automatically

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-10-26 20:38:30 +02:00