Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AK
Posts
2
Comments
3
Joined
1 yr. ago
Emacs @communick.news
akuszyk @alien.top
BOT

Thank you to the author of the terraform-doc package!

I just wanted to say thanks to /u/txgvnn for writing the terraform-doc package.

I find accessing Terraform provider documentation on the web to be a little cumbersome, and have often wished for a plain text experience similar to info manuals instead.

I recently decided to Google possible solutions, only to discover that /u/txgvnn had already written a package for it.

Thanks! I think it's awesome! 🙂

Emacs @communick.news
akuszyk @alien.top
BOT

Visualising data analysis in org-mode

Hello r/emacs! First-time poster here!

I recently wanted to visualise some data in org-mode using a Python source block to generate an image, which was then rendered directly in the buffer.

It took my a couple of goes to work out how to do it.

Given some data like this:

 org
    
#+begin_src bash :results output file :file data.njson
echo '{"name": "Spock", "editor": "Emacs"}
{"name": "James Kirk", "editor": "Vim"}
{"name": "Dr McCoy", "editor": "Vim"}
{"name": "Scotty", "editor": "Emacs"}
{"name": "Worf", "editor": "ed"}
{"name": "Geordi LaForge", "editor": "Emacs"}
{"name": "Data", "editor": "Emacs"}
{"name": "Jean-luc Picard", "editor": "VS Code"}
{"name": "Wesley Crusher", "editor": "VS Code"}
{"name": "William Riker", "editor": "Vim"}
'
#+end_src

  

A visualisation can be rendered as follows:

 org
    
#+begin_src python :results output file :file usage.png
import pandas as pd
import seaborn as sns
import sys

df = pd.read_json("data.njson", lines=True)
axes = sns.histplot(df,