Atom-script: Add support for GitHub Markdown

Created on 18 Sep 2015  Â·  5Comments  Â·  Source: atom-community/atom-script

Could this happen?

Most helpful comment

@Aisuko if you’re working with a system that supports Jupyter (JS, Python, Torch/Lua, etc.), hugely recommend checking out Hydrogen. I wrote a very small plugin that helps me select fenced code-blocks and send them to Hydrogen/Jupyter, which prints the result in Atom. (I then have a little script that, outside of Atom, will evaluate all fenced code blocks and format the result and insert them into the Markdown, but that’s very customized for each file/system.)

I completely forgot about atom-script. It might be really useful to do this kind of workflow in atom-script also because not everything I use has a Jupyter plugin (like, ugh, Matlab).

All 5 comments

It would be really cool if we could run the code within code fence blocks.

I’d love it if I could just configure script to run node (or python or whatever) on a session-by-session basis to send selected code snippets from Markdown to node/python. I’m trying to do so via configure run options but I get “Command not configured for GitHub Markdown!”.

Edit: Ah! I see how .coffee.md works! Brilliant! But I see that after it runs selected code thru coffee, it exits and I can’t run other code in it…

If you want to keep a running session, use Hydrogen

Same problem with you @fasiha

@Aisuko if you’re working with a system that supports Jupyter (JS, Python, Torch/Lua, etc.), hugely recommend checking out Hydrogen. I wrote a very small plugin that helps me select fenced code-blocks and send them to Hydrogen/Jupyter, which prints the result in Atom. (I then have a little script that, outside of Atom, will evaluate all fenced code blocks and format the result and insert them into the Markdown, but that’s very customized for each file/system.)

I completely forgot about atom-script. It might be really useful to do this kind of workflow in atom-script also because not everything I use has a Jupyter plugin (like, ugh, Matlab).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  9Comments

ChenZhongPu picture ChenZhongPu  Â·  3Comments

bhishanpdl picture bhishanpdl  Â·  7Comments

mblarsen picture mblarsen  Â·  6Comments

ld000 picture ld000  Â·  6Comments