Thanks for sharing! I knew that Sourcegraph notebooks were a thing, didn't know that they embedded code like that (I assumed they'd just embed Sourcegraph queries).
Sourcegraph is amazing. It's made my life so much easier by pointing me towards concrete implementations and use cases of libraries/projects that I'm learning. It's one of those tools that I had no idea I needed until I started using it, at which point it became indispensable.
Sourcegraph is amazing. It's made my life so much easier by pointing me towards concrete implementations and use cases of libraries/projects that I'm learning. It's one of those tools that I had no idea I needed until I started using it, at which point it became indispensable.
Congrats! I have told a lot of people about Sourcegraph and they all seem to see it as a viable alternative to their current code search and navigator. I wonder what the future of the product looks like. It is also one of my favorite open source projects to just browse through and understand the code base.
Looks like a good time to jump in :) I've always been interested in playing around with sourcegraph, been saving for a little home server upgrade to run some projects!
I've used python for graphviz just because I wanted some looping for many-to-one or one-to-many relationships and the auto-complete that comes from anything with an LSP or Python mode.
Honestly I'd use it just for the auto-complete.
(Admittedly, I didn't look too hard for dedicated editing environments that could do it for DOT files specifically. I just wanted to make something real quick.)
I ended up doing this for our python codebases at work.
The AST module was super handy as you'd expect. The script would optionally take some filters to reduce the size of the generated graph, and then it sent all the info to Graphiz (it emitted DOT, too, so it could be version controlled!!)
Definitely would use Sourcegraph with Python support.
reply