Skip to content

zoom link for CPython: 36 Years of Source Code is dead #91

@yihong0618

Description

@yihong0618
Image

the click to zoom is dead

for astro
there are three ways to fix this cc @StanFromIreland

  1. use mdx instead of md and change the svg to the link
  2. write a script in the build time
  3. change the svg link to a real link

simple way

diff --git a/content/posts/cpython-codebase-growth/index.md b/content/posts/cpython-codebase-growth/index.md
index ff2e225..04363e1 100644
--- a/content/posts/cpython-codebase-growth/index.md
+++ b/content/posts/cpython-codebase-growth/index.md
@@ -11,7 +11,7 @@ published: true
 ---
 ![Stacked area chart showing CPython's growth from a few lines in 1990 to 2.9 million lines in 2026, broken down by language](cpython_growth.svg)
 
-([Click to zoom!](https://blog.python.org/_astro/cpython_growth.CDpb_itO_ZomrED.svg))
+([Click to zoom!](https://raw.githubusercontent.com/python/python-insider-blog/main/content/posts/cpython-codebase-growth/cpython_growth.svg))
 
 While working on a patch and navigating through CPython, I got curious as to how the codebase has grown over the years. Using an interesting tool I found on the internet to *count lines of code* ([cloc](https://github.com/AlDanial/cloc)), some scripts, and some patience (thank goodness for multiple cores, or I’d be at this all day), I amassed a [1,392 commit dataset.](https://gist.github.com/StanFromIreland/bd33d5ee3c59c54cbe1f3bad2fbdb4e9) With that, and some Git spelunking for the annotations, I was able to generate the above graph.
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions