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

jupyter-repl-associate-buffer window #270

Open
colormotor opened this issue Jul 10, 2020 · 5 comments
Open

jupyter-repl-associate-buffer window #270

colormotor opened this issue Jul 10, 2020 · 5 comments

Comments

@colormotor
Copy link

Hello, I am not sure this is the right place to ask this,
but I am trying to configure in which window the REPL is opened when calling jupyter-repl-associate-buffer.
E.g. it currently always opens below the current one, but I would prefer it to be on the side, which is more convenient to view plot results.
Is this something that can be configured locally for emacs-jupyter?
Thanks in advance,
Daniel

@dangom
Copy link
Contributor

dangom commented Jul 13, 2020

@colormotor
Copy link
Author

Thank you.

Unfortunately all the solutions in that thread seem to break other functionalities in other packages (I'm using doom-emacs).
For the moment, I ended up adding a function that changes the layout as desired after the call to jupyter-repl-associate-buffer, based on code from the link above.

Wouldn't this be a useful option to have in emacs-jupyter?

@dangom
Copy link
Contributor

dangom commented Jul 15, 2020

I would think emacs-jupyter as a package should not be conflicting with an user's window management.

@pmercatoris
Copy link

As I understand it, in doom-emacs, you can configure where the jupyter bufffer appear like this:

(set-popup-rule! "*jupyter-pager*" :side 'right :size .40 :select t :vslot 2 :ttl 3)
(set-popup-rule! "^\\*Org Src*" :side 'right :size .60 :select t :vslot 2 :ttl 3 :quit nil)
(set-popup-rule! "*jupyter-repl*" :side 'bottom :size .30 :vslot 2 :ttl nil :quit nil)
(set-popup-rule! "*jupyter-output*" :side 'bottom :size .30 :vslot 2)

They are set to be popup buffers, and all popups can be modified that way.

@colormotor
Copy link
Author

Thanks @pmercatoris! That works great, using the following:

(set-popup-rule! "\*jupyter-repl...*" :side 'right :size .50 :vslot 2 :ttl nil :quit nil)

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

No branches or pull requests

3 participants