Email or username:

Password:

Forgot your password?
Top-level
Simon Willison

Using uvx to run a one-off Jupyter notebook against the current directory is a useful trick - I tried that for the first time today against the Anthropic Jupyter notebook interactive tutorials:

uvx --from jupyter-core jupyter notebook .

8 comments
Simon Willison

The API for talking to OpenAI’s file search mechanisms had quite a lot of steps, and I was feeling lazy, so I pasted the full page of documentation into Claude 3.5 Sonnet and told it “Based on this documentation, write me a Python CLI app (using the Click CLi library) with the following features: …” - and it did! gist.github.com/simonw/97e29b8

Lewis Cowles

@simon I So hope that they are giving you free access and perhaps even paying you for the work you do.

Simon Willison

@lewiscowles1986 I’ve secured enough free credits from various giveaways that I’ve not paid for any API access in over a year at this point

Marc Magnin

@simon I'd love to see a Youtube video of your workflow in that kind of exploration.
You developed your own process when working with Claude and I’m always fascinated to see you create these small tools. I'd love to know more about how you think on the moment, and then how you deploy them / make them more permanent

Lewis Cowles

@simon
github.com/astral-sh/uv
and
github.com/astral-sh/uv/issues

are fairly good links for more docs.

I've not yet used `uv` in anger (or joy), but I look forward to tinkering at some point.

DELETED

@simon I didn't realize you could do this. I swear, every time I see a tutorial in jupyter I cringe because I use them seldom enough that I forget all the annoying kernel stuff and blah blah etc.

Simon Willison

@justin right! I’m delighted that I can run a command to spin up a notebook without having to think very hard about where it’s installed etc

Go Up