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

Allow running multiple instances #2

Open
rdiaz02 opened this issue Mar 24, 2024 · 5 comments
Open

Allow running multiple instances #2

rdiaz02 opened this issue Mar 24, 2024 · 5 comments

Comments

@rdiaz02
Copy link

rdiaz02 commented Mar 24, 2024

I think this is not currently possible, because the port is hardwired in the code. Would it be possible to run hgd(token = FALSE) in R, grab the URL (including port) generated by the call to R in the inferior R process, and then pass that to the Perl script?

(Anyway, this is of course just a wish list. This is already great! Thanks!!)

@sje30
Copy link
Owner

sje30 commented Mar 25, 2024

Thanks Ramon.

I'm experimenting with exactly that -- and also using the ugd() interface available in R. Watch this space!

hope you are keeping well, its been a while!

@sje30
Copy link
Owner

sje30 commented Mar 25, 2024

I'm hoping the perl script can soon be replaced by a pure elisp solution.

@rdiaz02
Copy link
Author

rdiaz02 commented Mar 25, 2024

Hi Stephen,
Things are going well around here. Hope you are doing well too. :-)

I'm hoping the perl script can soon be replaced by a pure elisp solution.

Neat!! I'll be watching this closely.

@rdiaz02
Copy link
Author

rdiaz02 commented Apr 1, 2024

Just to keep track of a quick silly experiment. With v2, I can have different Emacs sessions use essgd. However, if I launch two different R sessions from the same Emacs session, they steal the essgd buffer from each other (i.e., the inferior R where I last issued essgd-start is the one that sends plots to the *essgd* buffer); doing rename-uniquely does not help (the renamed buffer does not seem to be used afterwards).

This might all be obvious and expected. Close as needed, of course.

@sje30
Copy link
Owner

sje30 commented Apr 1, 2024

Yes, it is as expected for now. I hope to get it such that one Emacs session can have multiple essgd buffers, just like you can have multiple R buffers.

One step forward is however that the port and token are not hardcoded now.

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

2 participants