Commit graph

937 commits

Author SHA1 Message Date
Paul Geraghty
b81c7f55ec
Fix typos (#955) 2022-01-30 09:44:27 +01:00
Chris Kellendonk
6bae9f3d93
Small fixes to the explore docs (#953)
* Fix Intro to Kino link in chat_app.livemd

* Install Kino before usage in distributed portals exploration
2022-01-29 19:23:18 +01:00
Chris Kellendonk
b1b573b5f4
Fix elixir_and_livebook.livemd branch parent (#951) 2022-01-29 17:32:55 +01:00
Jonatan Kłosko
4d70e5cceb
Test and typing improvements (#949)
* Minimize race condition in the frame update test

* Use defmacrop for building intellisense context

* Remove unnecessary cell view computation

* Fix nested assets resolution

* Fix typing errors

* Add missing async attribute to test suites

* Improve rendering synchronization

* Up
2022-01-29 16:39:41 +01:00
José Valim
372f086044 Move from Helpers to Utils and add doctests 2022-01-29 10:39:26 +01:00
Sam
420284006a
Add url arg to the CLI (#947) 2022-01-29 10:36:32 +01:00
José Valim
a667a51509
Update README.md 2022-01-28 21:57:59 +01:00
cristineguadelupe
edb7fe1ebd Update assets 2022-01-28 20:46:53 +00:00
Cristine Guadelupe
4dd28388a5
Bulk actions for sessions (#939)
* Initial implementation to close multiple sessions

* Sessions: bulk actions with components

* Rename Disconnect sessions to Disconnect runtime

* Select all and disabled when nothing is selected

* Styled checkbox

* Renames toggle events

* Warning about not persisted notebooks

* Adds disconnect runtime option for a single session

* Edit sessions on right

* Fix: typos and plural

* Minor adjustments

* Removes the loop for rendering the menu

* Menus with fixed width

* Minor adjustments

* Pluralize as global helper

* Bulk actions form on client side

* Track bulk actions buttons state

* Fix: home live tests

* Doctests for pluralize

* Fix: bulk actions buttons losing state on session update

* Fix: format

* Minor adjustment on toggle_edit

* Review-based adjustments

* Reset the Edit state after single-session actions

* Minor adjustments

* Fixes bulk action events

* Submit the bulk action form directly

* Tests for bulk actions

* Indentation

* Update lib/livebook_web/live/home_live/close_session_component.ex

Co-authored-by: José Valim <jose.valim@gmail.com>

Co-authored-by: José Valim <jose.valim@gmail.com>
2022-01-28 17:45:04 -03:00
jonatanklosko
d07945738d Update assets 2022-01-28 20:02:04 +00:00
Jonatan Kłosko
f8a216f8ee
Highlight code errors on formatting and evaluation (#948) 2022-01-28 21:00:31 +01:00
Jonatan Kłosko
b728d9deba
Release 0.5.2 (#946) 2022-01-27 16:35:17 +01:00
Jonatan Kłosko
7fc8f24d2c
Fix image uploads in Markdown cells (#945)
* Fix call to consume_uploaded_entries to match changes in LV

* Escape reserved characters when inserting image in a Markdown cell
2022-01-27 15:47:04 +01:00
José Valim
c0601798f3
Improvements to release (#944)
* Run in interactive mode: it uses less memory and improves
    boot time, which is the most desired properties for a dev tool

  * Do not use releases/cookie, instead generate one on boot
2022-01-27 14:52:59 +01:00
Jonatan Kłosko
188edfcf07
Handle intellisense during evaluation (#941)
* Handle intellisense during evaluation

* Apply review comments

* Add TODOs
2022-01-27 12:01:02 +01:00
Jonatan Kłosko
00c2cfb31a
Improve errors formatting (#936)
* Use monospaced font and wrapping for errors

* Improve function clause error format
2022-01-25 21:55:24 +01:00
Jonatan Kłosko
6b19f1d71b
Gracefully handle errors in the inspect protocol (#934) 2022-01-25 17:54:02 +01:00
Jonatan Kłosko
928cb5c592
Preserve Markdown modifiers in headings (#933) 2022-01-25 16:38:52 +01:00
jonatanklosko
23cd59713f Update assets 2022-01-25 15:21:31 +00:00
Jonatan Kłosko
2acefde9f7
Fix line break support in Mermaid graph definition (#932) 2022-01-25 16:19:33 +01:00
jonatanklosko
13b9fe0f94 Update assets 2022-01-25 13:31:53 +00:00
Jonatan Kłosko
2f55b87171
Allow downloads inside JS output iframe (#931) 2022-01-25 14:29:57 +01:00
Roberto Estrada
5110f85e73
macOS App includes elixir, erlang for standalone mode (#929) 2022-01-24 23:41:49 +01:00
gpopides
1b7b3080e1
disconnect node from remote machine (#915)
* disconnect node from remote machine

* return ok if disconnect is successful

* formatting

* Update lib/livebook/runtime/attached.ex

* move disconnection of node to NodeManager

* add doc about parent node option

* Update lib/livebook/runtime/erl_dist/node_manager.ex

Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-01-24 23:23:31 +01:00
Wojtek Mach
5579258722
Bump Elixir to 1.13.2 for Mac builds 2022-01-24 22:45:55 +01:00
jonatanklosko
e861564d22 Update assets 2022-01-24 10:31:44 +00:00
Joe Martinez
961581bfc7
bump phoenix_live_view to 0.17.6 (#919)
* bump phoenix_live_view to 0.17.6

* revert change to static dir

* fix deprecation warning
2022-01-24 11:30:07 +01:00
jonatanklosko
284a78278e Update assets 2022-01-24 10:23:00 +00:00
Joe Martinez
cd958f1492
warn if clipboard support is missing (#922)
* warn if clipboard support is missing

* make the message a bit more helpful

* Update assets/js/app.js

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-01-24 11:21:13 +01:00
José Valim
e94950e70c Move CHANGELOG introduction to new release page 2022-01-24 10:23:15 +01:00
Wojtek Mach
97c64cedb8
Open Livebook homepage on :reopen_app event (#928) 2022-01-23 20:46:30 +01:00
Wojtek Mach
88a92f8b2d Fix CFBundleShortVersionString and CFBundleVersion values 2022-01-23 20:23:52 +01:00
Mario Uher
4bc264e154
Make icon on macOS look more native (#924) 2022-01-23 13:03:24 +01:00
Cristine Guadelupe
930b3293f0
Doctests for format bytes (#921)
* Doctests for format bytes

* Update lib/livebook/utils.ex

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

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-01-22 20:04:20 -03:00
Cristine Guadelupe
4f197698ae
Favicon as png to work on Safari (#920) 2022-01-22 18:15:06 -03:00
cristineguadelupe
a648a4768e Update assets 2022-01-22 20:48:52 +00:00
Cristine Guadelupe
c2feceba37
Redesign the memory info chart on home (#918) 2022-01-22 17:46:53 -03:00
jonatanklosko
a5845c65b7 Update assets 2022-01-22 18:37:54 +00:00
Roberto Estrada
cdb17e8573
Adds font-awesome when is required (mermaid). (#913)
* Adds font-awesome when is required (mermaid).

* applied suggestions

* format with prettier vscode plugin
2022-01-22 19:36:00 +01:00
josevalim
b42d28f7a8 Update assets 2022-01-22 17:32:21 +00:00
José Valim
c58ab447e5 Compute memory information on every session list render 2022-01-22 18:30:37 +01:00
Jonatan Kłosko
e9ea88e180
Fix race conditions in message scheduling (#916)
* Fix race conditions in message scheduling

* Flush already fired timer message

* Move unscheduling to a separate function
2022-01-22 18:23:16 +01:00
josevalim
d51abc3706 Update assets 2022-01-22 16:18:58 +00:00
José Valim
70a9a95d4e
Improvements to memory tracking (#917)
* Address race condition on cancel timer
* Include memory measurement as part of evaluation metadata
* Move periodic resource computation to a single process
* Have a explicit call out for total memory
2022-01-22 17:17:20 +01:00
cristineguadelupe
69ccad2fbd Update assets 2022-01-21 22:26:42 +00:00
Cristine Guadelupe
6180bb1ff2
Track memory usage - visualization (#898)
* Utils to fetch and format system and node memory usage

* Order by memory

* Track memory on session

* Show memory usage on runtime sidebar

* Shows memory usage percentage on home

* Layout adjustments

* Sidebar design adjustments to match Figma

* Home design adjustments to show the memory information

* Move memory calculations to utils

* Shows disconnected notebooks as consuming 0mb on home

* Simplifies the data structure of memory usage

* Node memory tracker on runtime

* Clean up

* Renames node memory to runtime memory

* Standardizes the data structure of memory usage

* Sends evaluation_finished to the runtime to update the memory usage after an evaluation

* Fix: The evalutor does not notify when there is no notify_to option

* Adds a test with the notify_to option to the evaluator

* Documents the notify_to option

* Minor fixes on runtime and runtime_server

* Minor fixes on sessions

* Minor adjustments

* Updates docs and specs on Utils

* Minor adjustments on session_live

* Fix total memory used by sessions on home

* Put duplicated functions on helpers

* Better filter by memory

* Fix the tooltip text for memory information on sidebar

* Minor alignment adjustment on home
2022-01-21 19:24:47 -03:00
Kevin
0405690177
Fix macOS build (#911) 2022-01-21 10:48:21 +01:00
José Valim
bd3363acde
Allow LIVEBOOK_PORT to be set to 0 for a random port (#906) 2022-01-21 09:18:02 +01:00
Wojtek Mach
526499dfa5 Update Mac error alert style 2022-01-20 21:33:07 +01:00
Wojtek Mach
f4397d36b9
Add Swift launcher (#905) 2022-01-20 21:27:37 +01:00