gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.
MIT License
3.8k stars 264 forks source link

change directory magic #207

Open RafalSkolasinski opened 4 years ago

RafalSkolasinski commented 4 years ago

Standard jupyter notebook (python) kernel allows me to use

%cd ...

magic to change current directory.

It may be a nice feature to also have it for gophernotes.

cosmos72 commented 4 years ago

Yes, it would be useful - especially now that we have the special commands

$ some-shell-command [args]
simongarisch commented 3 years ago

Firstly, this is a nice project, so thanks for putting the effort into it. As Rafal has mentioned, it'd be useful to enhance the golang notebooks with jupyter magic commands. Using '%%javacript', for example, will work for the gophernotes docker python kernel but not for go.

cosmos72 commented 3 years ago

I am implementing %cd [path] - it's almost trivial

But I have no idea how to run javascript from gophernotes - maybe there's a way to return a response that will be executed as javascript in the browser?

simongarisch commented 3 years ago

@cosmos72 No worries. I was more interested in this for leaning on JS plotting libraries. There may be some other ways I can approach this.