Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Lunchtime Nikola Feature: graphviz

Sin­ce we are in the pro­ce­ss of adding a plu­gin re­po for Niko­la, I wanted to add a sim­ple plu­gin the­re so that we can show how it wo­rks.

So he­re it is. You use this:

.. graphviz::

   digraph foo {
       "Idea" -> "tap tap tap" -> "Code";
   }

And you get (a­s­su­ming gra­ph­viz is ins­ta­lle­d, and this plu­gin is ins­ta­lle­d, etc.) this:

b'\n\n\n\n\n\nfoo\n\n\n\nIdea\n\nIdea\n\n\n\ntap tap tap\n\ntap tap tap\n\n\n\nIdea->tap tap tap\n\n\n\n\n\nCode\n\nCode\n\n\n\ntap tap tap->Code\n\n\n\n\n\n'

It's sti­ll ve­ry ru­di­men­ta­r­y, but it ai­ms to be com­pa­ti­ble wi­th Sphi­n­x's im­ple­men­ta­tion even thou­gh the de­tails of how it's do­ne va­ry grea­tl­y.

ddevine / 2013-09-28 00:18:

This is awesome. Do want!

Roberto Alsina / 2013-09-28 01:43:

Go right ahead :-)

The version at http://plugins.getnikola.com has a bunch of improvements over the one I used here.

ivanelson / 2014-01-28 14:48:

I really like your posts. However, I never thought to click on ads. In fact I never realized that they exist. : (

But please do not stop writing about PyQt and Pythoh.

Your articles are great! Will stand for all humanity. :)


Contents © 2000-2024 Roberto Alsina