Tag python

7 bookmarks have this tag.

2024-09-16

7232.

Using reasoning for data validation | OpenAI Cookbook

cookbook.openai.com/examples/o1/using_reasoning_for_data_validation

Open-source examples and guides for building with the OpenAI API. Browse a collection of snippets, advanced techniques and walkthroughs. Share your own examples and guides.

2024-08-21

7222.

docling

pypi.org/project/docling

Docling bundles PDF document conversion to JSON and Markdown in an easy, self-contained package.

2024-07-04

7194.

Typst Basics – Quarto

quarto.org/docs/output-formats/typst.html

Typst is a new open-source markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use. Typst creates beautiful PDF output with blazing fast render times.

Use the typst format to create a PDF document via Typst

2024-05-06

7148.

toot by https://mastodon.decentralised.social/@wezm

mastodon.decentralised.social/@wezm/112391817575822540

🖥️ New post! Yesterday I imported all my YouTube subscriptions into Feedbin so that I can watch videos via RSS. To do this I needed to turn my 500+ subscriptions into an OPML file. In this post I detail how I did it using a combination of awk, curl, jaq, JavaScript, shell, scraper, and Python.

<https:www.wezm.net/v2/posts/2024/youtube-subscriptions-opml/>

[#YouTube](https://mastodon.decentralised.social/tags/YouTube) [#Invidious](https://mastodon.decentralised.social/tags/Invidious) [#NewPipe](https://mastodon.decentralised.social/tags/NewPipe) [#RSS](https://mastodon.decentralised.social/tags/RSS) [#Python](https://mastodon.decentralised.social/tags/Python)

2024-02-20

7113.

toot by https://mastodon.world/@orizuru

mastodon.world/@orizuru/111966059278729032

[@rob](https://gts.cupcakerob.nl/@rob)

If you use poetry to manage your venv for each repo, you can also do: poetry shell to use start the virtualenv, and then run nvim . to start coding.

Provided that your dap is setup like this:

local dap = require("dap")  
dap.configurations.python = {  
 {  
 type = "python",  
 request = "launch",  
 name = "Launch file",  
 program = "${file}",  
 pythonPath = "python",  
 },  
}  

[#nvim](https://mastodon.world/tags/nvim) [#neovim](https://mastodon.world/tags/neovim) [#python](https://mastodon.world/tags/python)

7112.

toot by https://gts.cupcakerob.nl/@rob

gts.cupcakerob.nl/@rob/statuses/01HQ44GMQ4QTAV8EVDSGJHFDXZ

TIL: if I want to debug [#python](https://gts.cupcakerob.nl/tags/python) :python: in [#neovim](https://gts.cupcakerob.nl/tags/neovim) :nvim:
your imported packages need to be in the same python env that debugpy is.

Now in [#LazyVim](https://gts.cupcakerob.nl/tags/lazyvim) , [#mason](https://gts.cupcakerob.nl/tags/mason) installs debugpy in it's own venv and the debug adapter can't find the other packages

so: install debugpy in your venv and run

:lua require('dap-python').setup('./venv/bin/python')

or use vscode/pycharm or something if you have a life ;-)

2024-01-29

7102.

toot by https://mastodon.social/@hugovk

mastodon.social/@hugovk/111839916261389437

Happy 30th to [#Python](https://mastodon.social/tags/Python) 1.0.0, announced by Guido van Rossum on 27 Jan 1994 in comp.lang.misc! 🎂 🎈 3️⃣0️⃣ 🍾 🎉

---

Python 1.0.0 is out!

Guido van Rossum
27 Jan 1994

--> Tired of decyphering the Perl code you wrote last week?

--> Frustrated with Bourne shell syntax?

--> Spent too much time staring at core dumps lately?

Maybe you should try Python, the next generation object-oriented
scripting and prototyping language, with a *readable* syntax.

---

Read in full:
<https://groups.google.com/g/comp.lang.misc/c/_QUzdEGFwCo/m/KIFdu0-Dv7sJ>