* Add windows version of ci
Config autocrlf to input on Windows
start epmd in background
* Update .github/workflows/test.yaml
* Update .github/workflows/test.yaml
* Update .github/workflows/test.yaml
* Fix tests
* Fix ownership of cached files
* Fix tests
* Increase timeouts
* Run tests on Windows only on main
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Fix horizontal scrollbar on smaller screens
* Apply navigation shortcuts without an additional roundtrip
* Shorten the data element selector
* Fix URL in changelog
* Return reference from handle_intellisense
* 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
* List predefined smart cells and automatically add their dependencies
* Generalize dependency insertion to multiple entries
* Add runtime setup modal
* Don't evaluate setup when restarting the runtime fails
* Automatically add vega_lite for chart builder
* Improve confirmation modal actions when the action is not destructive
* Keep binding in reversed evaluation order
* Treat rebound names as new
* Add test for the default order
* Optimise binding reorder
* Update lib/livebook/runtime/evaluator.ex
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Apply review comments
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Add support for scanning evaluation context from smart cells
* Rename prev_locator to base_locator to clarify the meaning
* Adjustments
* Add data tests
* Adjustments
* Test smart cell intearaction with RuntimeServer
* Serialize binding scanning and leave sending to the user
* Monitor the scanning process
Say we have this path on Windows: `C:/Users/wojtek/foo.livemd`. Opening
it: (ignore it's not escaped)
http://localhost:4000/open?path=C:/Users/wojtek/foo.livemd
would have failed with:
** (ArgumentError) expected an expanded absolute path, got: "C:/Users/wojtek/foo.livemd"
and that's because absolute paths (in other words, Path expanded) start
with `c:/`, not `C:/`.
* Reads the output after a cell has been evaluated
* Creates SR landmarks when errors happen
* fixes formatting
* Reads a clearer message when a runtime restart is required
* Update lib/livebook_web/live/session_live/cell_component.ex
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Write to file out-of-band
It won't block the immediate write but it may block
a subsequent write. A sync function was added for
testing purposes.
* Update lib/livebook/storage/ets.ex
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Create home and data_path directories if missing
* Update lib/livebook/config.ex
* Configure project-local data path for dev and test env
* Expand dev/test paths in compile config
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* 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
* Increase timeout for connecting via Mix standalone
I have hit this timeout when connecting via mix to a fairly large
application. Increasing this fixes it for my use case.
* Update lib/livebook/runtime/standalone_init.ex
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* 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
* add function to open notebook urls
* Update lib/livebook/utils.ex
Co-authored-by: José Valim <jose.valim@gmail.com>
* Update lib/livebook/utils.ex
Co-authored-by: José Valim <jose.valim@gmail.com>
* open notebook with notebook_open_url/2
* Update server.ex
* format Livebook.Utils
* Update lib/livebook_cli/server.ex
Co-authored-by: José Valim <jose.valim@gmail.com>
* correct function doc
Co-authored-by: José Valim <jose.valim@gmail.com>
* check if section has valid parent + tests
* formatting
* apply review feedback
* fix the forgotten test
* apply feedback
* apply feedback
* produce a warning if the section points to itself + tests
* Apply suggestions from code review
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Accessibility improvements on home page
* Unique ids for file info path buttons
* Improves navigation for screen readers in the session list
* Landmarks navigation for screen readers
* Headings navigation for screen readers
* Group navigation - running sessions list
* Fix typo
* Minor adjustments based on review suggestions
* Support downloading source on a per session basis
* Update session_list_component.ex
* Add test
* Update lib/livebook_web/live/home_live/session_list_component.ex
* Update test/livebook_web/live/home_live_test.exs
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Export file with title or file name
* Export with title or file name
* Add Session.file_name_for_download/1
* Compute the name without calling the server
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Skip XML.decode!(body) if body is empty
Google Cloud Storage has almost S3 compatible XML API,
but some responses have `content-type: text/html; charset=UTF-8`
and empty body. This change prevents XML decode error and
enables work fine with Google Cloud Storage.
* Handle Google Cloud Storage XML API response
* Rename S3.encode to S3.decode
* Improve a test case description
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Make S3.decode/1 let any content type pass
* mix format
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Adjust stop reasons for server processes
* Update lib/livebook/unique_task.ex
Co-authored-by: José Valim <jose.valim@dashbit.co>
Co-authored-by: José Valim <jose.valim@dashbit.co>
1. Allow multiple sessions to close or disconnect at once,
and then request the system resources to be updated
2. Make sure that closing a session happens synchronously,
otherwise a race condition could still list the closed
session in a dashboard
3. Ensure close and disconnect can happen more than once
(for example if two users click the same button at the
same time)
* 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