marciol

marciol

Hey, I was using jupyter notebooks and discovered that I was able to use it inside VS Code, with GitHub Copilot and it was a great experience. Do you know if there is something similar for Livebook or something like that for the future?

Showing Posts 1 to 10

w0rd-driven

w0rd-driven

This exists as GitHub - josecfreittas/vscode-livebook: An extension to add support for `.livemd` files and run a Livebook instance inside your VSCode · GitHub but it was archived. One of the known issues was that Livebook can’t live inside an iframe but I believe Livebook is already using iframes. There may be compatibility issues as iframe within an iframe can be problematic.

I haven’t used that extension very much but it was rather functional when I used it in early 2022. Livebook internals have made some shifts that may make it worth reviving the plugin.

I’d also love more official guidance as I have numerous ideas for embedding but haven’t worked through all the limitations.

Benjamin-Philip

Benjamin-Philip

I created an issue for better external support about 2 years ago, but it was closed because that was not the most important priority then. Maybe if we reopen there might be more interest?

josevalim

josevalim

Creator of Elixir

Livebooks run inside iframes now, so folks can give it a try again. :slight_smile: but we are a small team and it is still unlikely we can prioritize this, but it is more likely we can provide support for those willing to navigate these waters.

marciol

marciol OP

Hey Jose, it should be something that I would try in terms of contribution but my pace would be definitely slow

alexslade

alexslade

@josevalim Is there perhaps a way to only watch the file for updates so we can edit in another editor, but see the updates in Livebook?

josevalim

josevalim

Creator of Elixir

This has been asked a couple times in the issues tracker. The answer is no because it plays against Livebook features, such as notebook signing for security, secret management, etc.

alexslade

alexslade

Thanks, I’d looked in the PRs/Issues but hadn’t seen the discussions. I see them now.

marciol

marciol OP

I’m wondering these days If it would be possible to use something like LiveState to connect VS Code and a Livebook process, just speculating

_jonas

_jonas

In case anyone is (still) interested in using LiveBooks embedded inside vscode like that, I’ve just made a new extension based on the now available settings for embedding LiveBooks in an iframe, it’s here:

I mainly wanted it so I could open .livemd files directly from within my project.
It can also automatically attach to a running node based on workspace configuration, so you could set it up to always open notebooks attached to your mix project for you workspace.

_jonas

_jonas

Keep in mind it’s just an iframe embed. A big issue I’m just noticing now is this:

https://github.com/microsoft/vscode/issues/129178

Which is quite annoying. Might have to rethink whether the extension makes sense like this..
May have to play around with forking livebook and modifying it to forward events from the iframe up to the host.

Edit: I’ve solved this by forking livebook with a small addition of some JavaScript to forward events to the iframe host.

Not ideal and there are still some issues when switching focus but it will do for now for my use case at least.

— All posts loaded —

Where Next? Top

Trending in Questions Top

water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
achenet
Hello, I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind. However, when I launch mix phx.server, I get an error...
New
bradley
I really like the adapter patterns that ecto, nebulex, waffle, etc. use and would love find something similar for a key management servic...
New
unaware8150
Hello folks! So at work, we are seeing some situations where we have to define some “fixed” strings that are used across the codebase in...
New
Alvinkariuki
How Can I Optimise Compile Time Dependencies I have been building an elixir application for about 2 years now. Many modules and files ha...
New

Other Trending Topics Top

budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews