frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: PyMath Preview – preview LaTeX math in Python docstrings inside VS Code

https://github.com/sankarebarri/pymath-preview
2•sankarebarri•10h ago

Comments

sankarebarri•10h ago
I’ve been working quite a lot on machine learning recently and often document equations directly in Python comments and docstrings.

At first I was just writing them in plain text, like:

ax^2 + bx + c = 0

or gradient expressions written out linearly.

But as the equations became more complex it quickly became ugly and hard to read inside the code.

So I switched to writing them in LaTeX inside docstrings.

That solved the structure problem, but the equations were still not easy to visualize while reading the code.

So I built a small VS Code extension that renders the LaTeX directly.

PyMath Preview supports:

- inline math: $...$ - display math: $$...$$ - math inside Python docstrings - math inside comment blocks

Example:

def energy():

    """
    Einstein's mass–energy equivalence

    $$
    E = mc^2
    $$
    """
It uses KaTeX for fast rendering and it is lightweight.

Curious if others writing math-heavy Python code run into the same problem.

Show HN: Jido 2.0, Elixir Agent Framework

https://jido.run/blog/jido-2-0-is-here
156•mikehostetler•3h ago•35 comments

Show HN: PageAgent, A GUI agent that lives inside your web app

https://alibaba.github.io/page-agent/
39•simon_luv_pho•2h ago•14 comments

Show HN: I'm an AI growth-hacking agent. My premise was a lie.

2•happymouse•54m ago•1 comments

Show HN: Poppy – A simple app to stay intentional with relationships

https://poppy-connection-keeper.netlify.app/
164•mahirhiro•15h ago•75 comments

Show HN: Tracemap – run and visualize traceroutes from probes around the world

https://tracemap.dev/
5•solhuang•2h ago•2 comments

Show HN: OmoiOS–190K lines of Python to stop babysitting AI agents (Apache 2.0)

https://github.com/kivo360/OmoiOS
2•kanddle•3h ago•2 comments

Show HN: AgnosticUI – A source-first UI library built with Lit

https://www.agnosticui.com/
3•roblevintennis•3h ago•1 comments

Show HN: echo.html, between Feather Wiki and Roam with commands like Emacs

https://m15o.net/echo/
3•m15o•4h ago•0 comments

Show HN: Stacked Game of Life

https://stacked-game-of-life.koenvangilst.nl/
189•vnglst•5d ago•26 comments

Show HN: Hormuz Crisis Dashboard Real-time shipping disruption tracker

https://www.hormuztracker.com/
4•MrNekked•4h ago•0 comments

Show HN: Keep large tool output out of LLM context: 3x accuracy 95% fewer tokens

https://github.com/lourencomaciel/sift-gateway
6•loumaciel•5h ago•1 comments

Show HN: Vertex.js – A 1kloc SPA Framework

https://lukeb42.github.io/vertex-manual.html
44•LukeB42•4d ago•25 comments

Show HN: Voice skill for AI agents – sub-200ms latency via native SIP

https://github.com/nia-agent-cyber/openai-voice-skill
2•nia-agent•6h ago•0 comments

Show HN: SpiderSuite – Multi-engine web crawler and proxy for security research

https://spidersuite.io/
3•sub3suite•6h ago•1 comments

Show HN: A shell-native cd-compatible directory jumper using power-law frecency

https://github.com/jghub/sd-switchdir
23•jghub•1d ago•8 comments

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
64•mrconter11•4d ago•48 comments

Show HN: I made a zero-copy coroutine tracer to find my scheduler's lost wakeups

https://github.com/lixiasky-back/coroTracer
45•lixiasky•2d ago•3 comments

Show HN: podcast-cli - A Rust CLI for Podcast Index & YouTube Subtitles

https://github.com/the-waste-land/podcast-cli
2•liweixin•7h ago•1 comments

Show HN: DevTrack – A personal dashboard to track your developer growth

https://devtrack-rose.vercel.app
3•nullAffi•7h ago•0 comments

Show HN: Anaya – CLI that scans codebases for DPDP compliance violations

https://github.com/sandip-pathe/anaya-scan
4•sandippathe•8h ago•1 comments

Show HN: AlifZetta – AI Operating System That Runs LLMs Without GPUs

https://axz.si/
4•padamkafle•9h ago•1 comments

Show HN: PyMath Preview – preview LaTeX math in Python docstrings inside VS Code

https://github.com/sankarebarri/pymath-preview
2•sankarebarri•10h ago•1 comments

Show HN: I built a sub-500ms latency voice agent from scratch

https://www.ntik.me/posts/voice-agent
564•nicktikhonov•2d ago•153 comments

Show HN: Timber – Ollama for classical ML models, 336x faster than Python

https://github.com/kossisoroyce/timber
204•kossisoroyce•3d ago•33 comments

Show HN: A GFM+GF-MathJax/Latex HTML formatting adventure

https://github.com/scottvr/phart/blob/main/docs/GHM-LATEX.md
4•ycombiredd•4d ago•1 comments

Show HN: Paste a URL and watch multiple AI models redesign it side-by-side

https://shuffle.dev/ai-website-redesign
7•kemyd•20h ago•2 comments

Show HN: Your AI Slop Bores Me

https://www.youraislopbores.me/
11•mikidoodle•12h ago•4 comments

Show HN: Omni – Open-source workplace search and chat, built on Postgres

https://github.com/getomnico/omni
172•prvnsmpth•3d ago•42 comments

Show HN: Qlog – grep for logs, but 100x faster

https://github.com/Cosm00/qlog
15•cosm00•23h ago•18 comments

Show HN: I put HN discussions next to the article where it belongs

https://cool-link-web-production.up.railway.app/l/blogabout
8•krenerd•1d ago•0 comments