HNHacker News
TopNewBestAskShowJobs

cantdutchthis

513 karma · joined June 16, 2015

submissionscomments
cantdutchthis··on Marimo now runs in PyCharm
Vincent D. Warmerdam ;) there are a bunch of Dutch people who otherwise have the same name.

People also know me from the calmcode youtube channel and https://calmcode.io website

cantdutchthis··on Marimo now runs in PyCharm
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. ```

cantdutchthis··on Marimo now runs in PyCharm
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

cantdutchthis··on What I learned selling 2,500 MIDI recorders: Hardware is not so hard
Reading these kinds of stories always make me happy. Well done!
cantdutchthis··on David Beazley – Programming Courses
Noticed a similar thing with calmcode.io, the numbers don't lie. At the same time though, the setup of that site is so light/cheap that it remains zero effort to just keep the tutorials up.

In hindsight, I am _very_ happy that I never made that project into a main source of income.

cantdutchthis··on Claude Science
Not to mention the fact that marimo-pair also supports non-Claude models.
cantdutchthis··on [dead]
You can explore the tool on desktop (via webassembly) over at: https://koaning.github.io/wigglystuff/examples/chartpuck/

It's part of wigglystuff, and there are way more widgets too! https://koaning.github.io/wigglystuff/

cantdutchthis··on [dead]
You can explore the tool on desktop (via webassembly) over at: https://koaning.github.io/wigglystuff/examples/chartpuck/

It's part of wigglystuff, and there are way more widgets too! https://koaning.github.io/wigglystuff/

cantdutchthis··on Ask HN: Is building a calm, non-gamified learning app a mistake?
Multiple people have offered but decided against it for a few reasons.

- Proper reviews actually feel like they would take me as much time as doing it myself.

- One benefit of doing it all myself is that all the content has a familiar style.

- The downside of contributions is that a lot of the stuff that I see on YT just simply doesn't fit the style that I intend to have on calmcode. So before accepting contributions it also feels like I would have to vet the person who makes the contrib.

A lot of the aforementioned is more complex now as well due to the fact that folks can pay for the platform. It was a 100% free platform before, and right now it's a 99% free platform and some people pay a stipend to keep the site running. If contributions come in, I would also need to figure out a way to keep the incentives aligned, which also complicates things.

I've had a collaborator in the past and a bunch of things worked out there. But he's gone off to do other things, all of which is fair enough.

cantdutchthis··on Ask HN: Is building a calm, non-gamified learning app a mistake?
Creator of calmcode here, AskMeAnything[tm].
cantdutchthis··on Polars Cloud and Distributed Polars now available
Been a polars fan for a loooong time. Happy to see the team ship their product and I hope it does well!
cantdutchthis··on Ask HN: How do you fight YouTube addiction and procrastination? I'm struggling
i’ve used freedom.to at times to just turn off all distractions, works pretty well
cantdutchthis··on SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
former employee here, Matt wrote a blogpost with pretty much all of the details here: https://honnibal.dev/blog/back-to-our-roots
cantdutchthis··on Representing Python notebooks as dataflow graphs
Fun detail, you can actually define functions in a marimo notebook and load them in another Python file if you want.

Needs a bit of extra config but tis a really nice feature.

https://docs.marimo.io/guides/reusing_functions/

cantdutchthis··on Representing Python notebooks as dataflow graphs
It certainly has some of the “widget feelings” from streamlit but the real killer feature is that you’re still always in a notebook. You can still explore with these widgets, which is a stellar experience.
cantdutchthis··on Show HN: Molab, a cloud-hosted Marimo notebook workspace
Everyone: don't push live on a Friday. marimo: ... hold my beer
cantdutchthis··on A Python-first data lakehouse
marimo is open source and uses a reactive model which makes it fun to mix/match widgets with Python code. It even supports gamepads if you wanted to go nuts!

https://youtu.be/4fXLB5_F2rg?si=jeUj77Cte3TkQ1j-

disclaimer: I work for marimo and I made that video, but the gamepad support is awesome and really shows the flexibility

cantdutchthis··on Notebooks as reusable Python programs
(marimo team-member here)

I have had a similar situation and my "hack" for this was to start the same notebook twice and have two tabs open. This worked for something things ...

Other times I just bit the bullet and made two forms on two variables so that everything would fit in a single notebook. By having two variables that contain all the inputs you can make sure that only the cells update that need to update. It takes a bit more effort but makes a lot of sense for some apps that you want to share with a colleague.

If you share more details about your setup I might be able to give better advice/think along more.

cantdutchthis··on Notebooks as reusable Python programs
(someone from the marimo team here)

How you start the marimo notebook, via

`marimo edit must-give-name-to-this-file.py`

is indeed one of my teeny by favourite features of it. When you start a new notebook you're kind of forced to name it immediately.

cantdutchthis··on Notebooks as reusable Python programs
(someone from the marimo team here)

The `export` command can generate a rendered artifact if that's what you're after but there is also another avenue here, have you seen the caching feature? The one that caches to disk and persists?

https://docs.marimo.io/guides/expensive_notebooks/?h=cache#d...

This can automatically store the output of expensive functions, keeping the previous state of the cells in mind. If a re-compute ever needs to happen it will just load it straight from cache.

Another option is to run in lazy mode, documented here:

https://docs.marimo.io/guides/expensive_notebooks/?h=cache#l...

This will prevent the notebook from rerunning cells by accident.

We're thinking about adding features that would make marimo great for running long running batch work but there's not a whole lot I can share about it yet. If you have specific thoughts or concerns though, feel free to join our discord!

https://marimo.io/discord?ref=nav

cantdutchthis··on Notebooks as reusable Python programs
Out of curiosity, does this approach also allow for interactive widgets?
cantdutchthis··on Notebooks as reusable Python programs
(someone from the marimo team here)

Happy to hear it! Got a link to your widget? I am assuming it's an anywidget?

cantdutchthis··on Notebooks as reusable Python programs
(someone from the marimo team here)

It depends a bit on how the notebook is written. There is `mo.app_meta()` that allows you to detect how the notebook is running. This can be in "app mode", "edit mode" or in "script mode".

https://docs.marimo.io/api/app/?h=meta#marimo.app_meta

Effectively this could allow you to do things like "only run this bit when not in script mode" if you want to skip things.

Alternatively you can also run the notebook via the `marimo export` command if you care about the charts and want to have a rendered notebook as an artifact.

Gotta ask out of curiosity, anything you can share about your cursor/marimo workflow? Are you using the llm tools from within marimo or outside of it?

cantdutchthis··on Advanced NLP with SpaCy
> I think there is a good argument in saying simple NLP is basically solved

In my experience LLMs can get about 70-80% accuracy on a bunch of NER and text classification tasks if you give it a reasonable prompt. That's not nothing and it's something that you can get started with super quickly. But you'll have slow responses and typically a 3rd party running the inference.

Annotating data yourself to about 2000-3000 examples, on the datasets that I ran my benchmarks on, may get you closer to 80-90%. You'll typically also get fast inference that you can run on your own hardware no problem. By annotating the data myself I also like to think that I understand the problem much better as a consequence.

Don't get me wrong. LLMs are cool and interesting ... but they don't seem to replace old-school methods just yet.

cantdutchthis··on Show HN: Rules-based labelling tool for NLP
Oh, yeah, for sure the target audience is python devs with human-learn. There are user-interfac-y things but those are accessed from a Jupyter notebook.
cantdutchthis··on Show HN: Rules-based labelling tool for NLP
I'm the maintainer of human-learn. While I cannot speak on behalf of the maintainer of DataQA, but it does seem like this tool is more specific to the entity detection use-case. I imagine it has better support for tools that deal with text.

Human-Learn, on the other hand, is more focussed on tabular data and the scikit-learn stack. Since scikit-learn doesn't have a convenient pipeline for entity detection, I would certainly recommend exploring other tools than human-learn for this use-case.

I've not used DataQA before, but figured it'd be relevant to share my input.

cantdutchthis··on Calmcode – Video tutorials for modern ideas and open source tools
The goal kind of is that it's a pretty low bar in terms of time investment but that you get the feeling after each video of "hey yeah ... that sounds like something that might make my work easier". Happy to hear you like it.

I've started a thread on this on github here; https://github.com/koaning/calmcode-feedback/issues/61.

cantdutchthis··on Calmcode – Video tutorials for modern ideas and open source tools
No worries. I totally get where it comes from actually.

Also, I really want this website to be a calm experience. That means that this sort of thing really shouldn't happen.

cantdutchthis··on Calmcode – Video tutorials for modern ideas and open source tools
There's a feedback list on github here: https://github.com/koaning/calmcode-feedback/issues

If you could describe your browser/situation in more detail I'd love to understand what is happening. I don't need vimeo to do any cookie placing so I might be able to turn something off such that you don't need to whitelist it.

cantdutchthis··on Calmcode – Video tutorials for modern ideas and open source tools
At the moment this project works for me because it's a calm experience for me to do. I'm not 100% looking forward to review work to be frank and I prefer to have this website act as a meaningful hobby project for the time being.

Part of me would like to do a bit more R/html. And I'd love to also host rust (maybe Julia). But I don't consider myself proficient enough to make content for those topics.

Page 1 of 2Next →