gophernotes icon indicating copy to clipboard operation
gophernotes copied to clipboard

Magic commands don't work?

Open lyda opened this issue 7 years ago • 6 comments

Ran the docker container version of this. Magic commands like %quickref and %lsmagic don't work.

lyda avatar Jun 15 '17 13:06 lyda

Thanks for letting me know. I haven't tackled this sort of thing yet. I'm looking to upgrade a few things soon, so hopefully I will be able to add this in.

dwhitena avatar Jun 23 '17 01:06 dwhitena

Adding some data point..

%env
repl.go:1:1: expected statement, found '%'

AnthonyWC avatar Oct 09 '17 21:10 AnthonyWC

Thanks @AnthonyWC. Yeah, this is due to the magic command trying to be processed by gomacro. We need to handle this is a special way eventually, on the gophernotes side.

dwhitena avatar Oct 10 '17 13:10 dwhitena

Confirmed, gophernotes currently does not implement magic commands. Definitely a TO DO.

cosmos72 avatar Jun 09 '18 11:06 cosmos72

Is there anyone working on this? I don't know anything about gophernotes' code base right now, but I'd definitely like to have magic commands or at least a way to run something directly from the system. If no one is doing it I could try to fix it and send a PR, but I'd appreciate someone pointing me where in the code base I should start since I haven't touched it.

vdemario avatar Feb 13 '19 18:02 vdemario

Nobody is working on them. Your contribution would be welcome :)

You can start by installing the underlying interpreter gomacro and getting to know its magic commands - type :help at gomacro prompt to list them.

Then, you can examine their implementation and decide how to expose them in gophernotes. The final step is to implement missing magic commands that Jupyter kernels are usually expected to have

cosmos72 avatar Feb 17 '19 10:02 cosmos72