Get help from the marimo community

m
mholub
Offline, last seen 3 months ago
Joined November 25, 2024
Hello people, I learned about Marimo just 1h ago, haven't really read docs yet, so pardon my ignorance

My usecase is the following:

I have paid subscription to AI provider which has its own extension for VS Code/Rider, other IDEs (in my case it's Cody but it doesn't matter).

I would like to use it with Marimo notebooks.

I see that VS code extension is not there yet so my next idea is to use main browser interface and occasionally interact with source file directly from VS Code without the marimo extension. So to edit python file directly (using AI or manually, doesn't matter)

This doesn't work for me right now cause whenever I make changes to source file - marimo doesn't see it until I restart kernel

is there a way to tell it that file is modified somehow? maybe send some HTTP request from vs code.. or something.. or press some hotkey inside marimo to reread the file contents (but don't restart the kernel)
2 comments
m
I tried to do such code

Plain Text
import subprocess as _subprocess
import os as _os

def open_symbol_location(symbol):
    location = get_symbol_location(symbol)
    _subprocess.Popen(
            ["code", location],
            preexec_fn=_os.setsid,
            stdout=_subprocess.DEVNULL,
            stderr=_subprocess.DEVNULL
        )


i.e. basically import modules as private variables just for a single cell

when I am using such function in another cell - I am getting error

Obviously it's not a big deal but could be useful situationally
but I don't know if it's a bug or more like explicitly unsupported thing?
2 comments
A