yolo007wizard

yolo007wizard

Livebook runtime logs?

Does Livebook have a way to create a runtime log file? I’m thinking of a flow where a job evaluates a livebook file in ‘background’ mode with no eyes on it. Lets say a specific livebook runtime encounters some errors and now I would like to see them.

Thinking out loud; I suppose the wrapper job could fetch the livebook code, evaluate, then send any errors to a normal log file. It would be really nice though to see all the errors in line with code cells in the livebook markdown. A livebook log file of some sort would be really cool. Open it like any other livebook file and it displays all the rendered output of a previous runtime.

This is in line with this idea but not sure what came of it.

Most Liked

yolo007wizard

yolo007wizard

Makes sense, these would be great feature additions then!

  • background livebook runner i.e. run a livebook like a script
  • save all rendered output / code evaluation / error logs etc to a cloned livemd file called ‘{livebook name}-log-{timestamp}.livemd’
  • the new livemd file can be loaded into livebook app at later time to view how that runtime went

Livebook to me feels like a higher functioning iex session; perfect blend of gui + code. Imo this would take it to next level!

josevalim

josevalim

Creator of Elixir

Oh, I understand it better now.

The issue in implementing what you have in mind right now is that there is no official way for executing a notebook programatically. We want to add APIs for deployed notebooks though. Then you could pass a log file as parameter to the notebook itself :slight_smile:

josevalim

josevalim

Creator of Elixir

The Livebook application is separate from the runtime your notebook runs on. Therefore, if you want to log anywhere, you can configure the Logger in your notebook to log wherever you want.

Where Next?

Popular in Questions Top

dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

We're in Beta

About us Mission Statement