Live data from Hacker News

Marimo now runs in PyCharm

marimo.io

21–30 of 39 posts

Re: Marimo now runs in PyCharm

#21
post #7

We have adopted marimo notebook for doing modern data science. I’m happy with their progress. Nice to see greater integration.

What’s “modern” data science?

2-player games, 60 card decks, all sets are legal, no more than four of any card in each deck.

Re: Marimo now runs in PyCharm

#23
post #22

Any former Jupyter users using Marimo who have the sales pitch? I'm decently happy using Jupyter Lab but would love to hear what I'm missing out on

marimo dev here, the pitch that got me working there is widgets!

This video highlights some fancy tricks: https://www.youtube.com/watch?v=qVSeOr3AIbc

Re: Marimo now runs in PyCharm

#24
post #12

I was interested in marimo, but I became less interested when I realized that they traded off being able to assign to a variable more than once in order to allow out-of-order execution of cells. I mean as a Jupyter user, I typically do both and just keep track of what I'm doing in my head (like a repl with many snippets I can run any time), but if I wanted to make it more predictable, I would definitely give up out-o…

marimo dev here.

Just wanted to mention that you're always able to do this:

for _x in range(100): ...

This way, `_x` is detected as a throwaway Python variable. And it won't re-appear in other cells.

Also, within the same cell you can always re-assign. But you can't do that in another cell. We want to ensure that a variable is fully declared in one, and only one, cell.

``` # cell A, totally fine

a = 1 for _ in range(100): a = a + 1

# but don't re-assign a in another cell. ```

Re: Marimo now runs in PyCharm

#25
post #22

Any former Jupyter users using Marimo who have the sales pitch? I'm decently happy using Jupyter Lab but would love to hear what I'm missing out on

Yup! Not affiliated in anyway, just a fan. I like jupyter but marimo's my go to for a few reasons:

- Automatic reactivity can be turned on (will trigger dependent cells if you uptade an upstream one) - Much nicer non-json file format (just python files, with a seperate output) - Much better virtual environment integration / managent (this is always a hassle with jupyter) - Widgets are great! - Better LLM integration (new marimo-pair means llm can inspect the actual python runtime objects) - It generally "looks" a lot nicer if you're using the web ui, which is nice.

Re: Marimo now runs in PyCharm

#26
post #12

I was interested in marimo, but I became less interested when I realized that they traded off being able to assign to a variable more than once in order to allow out-of-order execution of cells. I mean as a Jupyter user, I typically do both and just keep track of what I'm doing in my head (like a repl with many snippets I can run any time), but if I wanted to make it more predictable, I would definitely give up out-o…

I think that’s just a fundamental tradeoff though. Being able to run Jupyter cells independently is a feature until it’s not. I’d say for most of my one-off work, it’s fine. But for stuff I want to share it’s not.

Yes I understand it's a tradeoff, but I'm saying I would prefer a different tradeoff. It would be more intuitive to me if running a cell always invalidated the cells below; this would make variable reassignment unambiguous, just like in a script, but still with all the visualization goodies of a notebook.

Re: Marimo now runs in PyCharm

#27
post #22

Any former Jupyter users using Marimo who have the sales pitch? I'm decently happy using Jupyter Lab but would love to hear what I'm missing out on

marimo dev here, the pitch that got me working there is widgets! This video highlights some fancy tricks: https://www.youtube.com/watch?v=qVSeOr3AIbc

this is a very engaging and well presented video, respect to whoever this guy who made it is (cant tell from the description), he's good at his job

Re: Marimo now runs in PyCharm

#29

Not sure about this environment complaint with Jupyter. I taught venv and pip for years without issues to thousands. Now I teach uv and it is even faster and easier.

As an SRE/ops (and I'm talking some years ago) it was often a pain point, especially with devs with a "works on my machine" attitude ; you would never get the exact requirements from them, I even saw a team of 2 who worked together with different versions of stuff on their respective machines. I also worked in some "offline" environments where once in prod you cannot pull anything from the internet, and you cannot install a compiler too, so it's quite hard to ship because some pip packages require to be built.

I found a way using (can't remember the tool name) which if you loop through the imports and gives it to the tool you get the package name, then I would build wheels to have all binaries and build a container or a VM with all that's needed, thus working completely around python package managers. This was a good enough workflow for the kind of deployment we needed.

Jupyter added a layer of complexity, I deployed it alongside RStudio as browser IDEs in docker swarm. Everybody wants a different set of deps and versions, so you have to keep track of everything, and also people may use things just for development that must not be shipped to prod, so you have to keep track of that too. Also some would develop notebooks on windows and expect them to work in linux VMs/containers and even in prod.

Nowadays devs ship container images anyway through a CI so it is less of an issue. In this era docker was far from being the de-facto everywhere, some people were still afraid of this, security didn't like it, etc.

Re: Marimo now runs in PyCharm

#30
post #27

Earlier quoted context omitted.

marimo dev here, the pitch that got me working there is widgets! This video highlights some fancy tricks: https://www.youtube.com/watch?v=qVSeOr3AIbc

this is a very engaging and well presented video, respect to whoever this guy who made it is (cant tell from the description), he's good at his job

Vincent Warmerdam. Check out his PyData talks and the probably.ai YouTube channel for which he has done videos.
Post reply on HN