People also know me from the calmcode youtube channel and https://calmcode.io website
513 karma · joined June 16, 2015
People also know me from the calmcode youtube channel and https://calmcode.io website
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. ```
This video highlights some fancy tricks: https://www.youtube.com/watch?v=qVSeOr3AIbc
In hindsight, I am _very_ happy that I never made that project into a main source of income.
It's part of wigglystuff, and there are way more widgets too! https://koaning.github.io/wigglystuff/
It's part of wigglystuff, and there are way more widgets too! https://koaning.github.io/wigglystuff/
- 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.
Needs a bit of extra config but tis a really nice feature.
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
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.
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.
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!
Happy to hear it! Got a link to your widget? I am assuming it's an anywidget?
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?
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.
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.
I've started a thread on this on github here; https://github.com/koaning/calmcode-feedback/issues/61.
Also, I really want this website to be a calm experience. That means that this sort of thing really shouldn't happen.
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.
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.