Giter Site home page Giter Site logo

Comments (6)

dwhitena avatar dwhitena commented on May 18, 2024

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.

from gophernotes.

AnthonyWC avatar AnthonyWC commented on May 18, 2024

Adding some data point..

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

from gophernotes.

dwhitena avatar dwhitena commented on May 18, 2024

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.

from gophernotes.

cosmos72 avatar cosmos72 commented on May 18, 2024

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

from gophernotes.

vdemario avatar vdemario commented on May 18, 2024

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.

from gophernotes.

cosmos72 avatar cosmos72 commented on May 18, 2024

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

from gophernotes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.