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

change directory magic #207

Open
RafalSkolasinski opened this issue May 4, 2020 · 4 comments
Open

change directory magic #207

RafalSkolasinski opened this issue May 4, 2020 · 4 comments

Comments

@RafalSkolasinski
Copy link

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
Copy link
Member

cosmos72 commented May 6, 2020

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

$ some-shell-command [args]

@simongarisch
Copy link

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
Copy link
Member

cosmos72 commented May 3, 2021

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
Copy link

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

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

3 participants