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

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
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
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews