nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.92k stars 334 forks source link

Issue: Pweave "No kernel for grammar pweave markdown found" #1073

Closed dsanalytics closed 6 years ago

dsanalytics commented 6 years ago

Not sure whether this is pweave or hydrogen issue - I'm getting "No kernel for grammar pweave markdown found" error from Hydrogen in Atom when I open and try to run a valid pmd. Hydrogen and python (py files) are running just fine. I can also see md files rendered properly in Markdown Preview in Atom. I have inserted [{"pweave markdown": "Python 3"}] under Kernel Gateways in Settings to no avail (I also tried uppercase - Pweave) - it didn't work with that setting blank either.

File tried (FIR_designp.pmd) - first one listed in examples: http://mpastell.com/pweave/examples/index.html

Any ideas?

Windows 10 Home Premium 64bit Atom 64bit v 1.21.1 Hydrogen 2.0.1

no-kernel-for-grammar-pweave-markdown-found

atom-community-packages-list

mpastell commented 6 years ago

You typically get this error if you try to execute a line of markdown from .pmd. Try moving your cursor to a code block. Also remove the setting from kernel gateways, it is not needed.

dsanalytics commented 6 years ago

Pweave is supposed to render the entire file and not just execute one code block. Code block does execute, but how do I execute all code cells at once along with all markdown being properly rendered so that the entire file produces formatted rich text report?

Even if I execute each code cell manually, markdown still doesn't render - so how does one initiate that part?

If you don't mind my asking, how did you generate md and 2 html files from pmd files provided on your example page? See the screenshot.

pweave-examples

dsanalytics commented 6 years ago

Related: https://github.com/atom/atom/issues/16061

mpastell commented 6 years ago

Hydrogen doesn’t run pweave, but it can be used to execute code during development. You need to run pweave from command line to get html etc. The commands are in the examples page (below the table)

mpastell commented 6 years ago

Run this from command line:

pweave -f md2html FIR_designp.pmd

Rest of the commands are also included in the example gallery,

dsanalytics commented 6 years ago

My apologies to @mpastell - I removed the post made in ignorance.

BenRussert commented 6 years ago

@dsanalytics Sounds like @mpastell answered the question here so I will close. Feel free to reply if you still have questions!