Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magic commands don't work? #65

Open
lyda opened this issue Jun 15, 2017 · 6 comments
Open

Magic commands don't work? #65

lyda opened this issue Jun 15, 2017 · 6 comments

Comments

@lyda
Copy link

lyda commented Jun 15, 2017

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

@dwhitena
Copy link
Contributor

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.

@AnthonyWC
Copy link

Adding some data point..

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

@dwhitena
Copy link
Contributor

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.

@cosmos72
Copy link
Member

cosmos72 commented Jun 9, 2018

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

@vdemario
Copy link

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.

@cosmos72
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants