Tag python
7 bookmarks have this tag.
7 bookmarks have this tag.
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.
Docling bundles PDF document conversion to JSON and Markdown in an easy, self-contained package.
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
🖥️ 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)
[@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)
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 ;-)
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>