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
1•sankarebarri•1h ago

Comments

sankarebarri•1h 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.

Styx Document Language

https://styx.bearcove.eu/
1•todsacerdoti•5m ago•0 comments

A Call for Meaningful Work at a Slower Pace

https://jenteottenburghs.wordpress.com/2025/11/18/a-call-for-meaningful-work-at-a-slower-pace/
2•carschno•5m ago•0 comments

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

https://github.com/sandip-pathe/anaya-scan
2•sandippathe•6m ago•1 comments

Show HN: Parsewise – Cursor for Business Documents

https://www.parsewise.ai/platform
2•maxhofer•6m ago•0 comments

Show HN: Chartle – Describe a chart in plain English and it creates it

https://www.chartle.app/
1•moorst•6m ago•1 comments

Show HN: A framework for building nexuses of agents

https://github.com/NetMindAI-Open/NexusAgent
1•Demi369•7m ago•0 comments

Fresh claim of making elusive 'hexagonal' diamond is the strongest yet

https://www.nature.com/articles/d41586-026-00711-9
1•Brajeshwar•11m ago•0 comments

AI can write genomes – how long until it creates synthetic life?

https://www.nature.com/articles/d41586-026-00681-y
1•Brajeshwar•11m ago•0 comments

Ex-Google PM Builds God's Eye to Monitor Iran in 4D [Text]

https://www.spatialintelligence.ai/p/the-intelligence-monopoly-is-over
2•fragmede•11m ago•1 comments

Show HN: Mnemora – Serverless memory DB for AI agents (no LLM in your CRUD path)

https://github.com/mnemora-db/mnemora
2•isaacgbc•15m ago•1 comments

Show HN: Slay the Spire 2 Wiki (database and card maker tool)

https://slaythespire2.gg
1•WanderZil•15m ago•1 comments

Top K is a deceptively hard problem in relational databases

https://www.paradedb.com/blog/optimizing-top-k
1•birdculture•16m ago•0 comments

Frak – a simple code deployment utility

https://github.com/frakjs/frak
1•strube•19m ago•0 comments

Ex-Google PM Builds God's Eye to Monitor Iran in 4D [video]

https://www.youtube.com/watch?v=0p8o7AeHDzg
2•KellyCriterion•20m ago•1 comments

Write Small Rust Scripts

https://llogiq.github.io/2026/03/05/auto.html
1•ingve•22m ago•0 comments

Bourdieu's theory of taste: a grumbling abrégé

https://dynomight.net/bourdieu/
1•sebg•23m ago•0 comments

Polsia – vibe coded companies with live revenue and digital marketing

https://polsia.com
1•DaedalusII•24m ago•0 comments

What's an API?

https://read.technically.dev/p/whats-an-api
1•sebg•26m ago•0 comments

Show HN: AI Governance Architecture – DB-Governed, LLM-Agnostic, EU AI Act

https://github.com/war851/AI-Governance-Architecture
1•war851•29m ago•1 comments

Paloha – Agence de communication Montpellier

https://paloha.fr/fr
1•PatrickNav•30m ago•1 comments

Are companies preventing sensitive data from being sent to external LLM APIs

1•jayakrishna96•31m ago•0 comments

Fly.io deleted my apps and DBs in an unrelated organization without warning

1•pakejro•33m ago•0 comments

Emacs internals: Deconstructing Lisp_Object in C (Part 2)

https://thecloudlet.github.io/blog/project/emacs-02/
2•thecloudlet•33m ago•0 comments

Deno Sandbox: run AI generated code with real isolation and complete control

https://deno.com/deploy/sandbox
1•AbuAssar•35m ago•0 comments

How to Convert OST File to PST File in Outlook?

https://blog.perfectdatasolutions.com/ost-to-pst-converter-software-2/
1•tieanderson•37m ago•1 comments

Stop Writing Instrumentation Code

https://encore.dev/blog/stop-writing-instrumentation-code
3•andout_•39m ago•0 comments

OpenClaw Agent

https://openclawagent.net
3•czmilo•39m ago•1 comments

ClickMem: Agent memory built on chDB(ClickHouse embedded)

https://github.com/auxten/clickmem
1•tosh•40m ago•0 comments

Looking for suggestions: project orchestration solutions

1•paulistaunb•43m ago•0 comments

Simple and Inexpensive Website Monitoring

https://updown.io/
1•jauco•45m ago•0 comments