gophernotes icon indicating copy to clipboard operation
gophernotes copied to clipboard

change directory magic

Open RafalSkolasinski opened this issue 4 years ago • 4 comments

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.

RafalSkolasinski avatar May 04 '20 17:05 RafalSkolasinski

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

$ some-shell-command [args]

cosmos72 avatar May 06 '20 16:05 cosmos72

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.

simongarisch avatar May 02 '21 22:05 simongarisch

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?

cosmos72 avatar May 03 '21 09:05 cosmos72

@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.

simongarisch avatar May 05 '21 01:05 simongarisch