From whygp@ @end|ng |rom gm@||@com Wed Aug 21 05:50:48 2019 From: whygp@ @end|ng |rom gm@||@com (HaiYing Wang) Date: Tue, 20 Aug 2019 23:50:48 -0400 Subject: [ESS] Possible to interact with julia-repl? Message-ID: Dear All, Version: Emacs GNU Emacs 26.2, ESS - version 18.10.2 OS: Ubuntu 18.04 I have julia-repl minor mode enabled (https://github.com/tpapp/julia-repl). I start an ESS process for julia, and then exit julia and kill that buffer. After that, if I execute a julia-repl comment, e.g., C-c C-p, then a julia-repl term model will promote and I would be asked to choose an ' ess-dialect'. If I choose julia, I will be able to interact with the julia-repl while all the ess key bindings work. This result is ideal for me because I like the keybindings and functioning from ess and like to have a fully functional julia repl. Is there a way to config ESS so that I can chose which terminal ESS will start or interact: the default one or the one from julia-repl? Any comments or hints are appreciated? Thank you very much! Best, HaiYing Wang [[alternative HTML version deleted]] From @p|nuv|t @end|ng |rom gm@||@com Sun Aug 25 10:49:05 2019 From: @p|nuv|t @end|ng |rom gm@||@com (Vitalie Spinu) Date: Sun, 25 Aug 2019 10:49:05 +0200 Subject: [ESS] Possible to interact with julia-repl? In-Reply-To: (HaiYing Wang via's message of "Tue, 20 Aug 2019 23:50:48 -0400") References: Message-ID: <86o90dljem.fsf@gmail.com> This is interesting. I didn't now about julia-repl. Your setup is not entirely clear. The "ess-dialect" prompt comes (most likely) from the ess-remote. So something (maybe julia-repl) installs `ess-remote`? In general, you can try `M-x ess-remote` from the julia-repl and if things work, then you could add `(ess-remote nil "julia")` to the julia-repl hook (probably `julia-repl-mode-hook`). Vitalie >> On Di, Aug 20 2019 23:50, HaiYing Wang via ESS-help wrote: > Dear All, > Version: Emacs GNU Emacs 26.2, ESS - version 18.10.2 > OS: Ubuntu 18.04 > I have julia-repl minor mode enabled (https://github.com/tpapp/julia-repl).I start an ESS process for julia, and then exit julia and kill that buffer. > After that, if I execute a julia-repl comment, e.g., C-c C-p, then a > julia-repl term model will promote and I would be asked to choose an ' > ess-dialect'. If I choose julia, I will be able to interact with the > julia-repl while all the ess key bindings work. > This result is ideal for me because I like the keybindings and functioning > from ess and like to have a fully functional julia repl. Is there a way to > config ESS so that I can chose which terminal ESS will start or interact: > the default one or the one from julia-repl? > Any comments or hints are appreciated? Thank you very much! > Best, > HaiYing Wang > [[alternative HTML version deleted]] > ______________________________________________ > ESS-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help From whygp@ @end|ng |rom gm@||@com Sun Aug 25 17:07:51 2019 From: whygp@ @end|ng |rom gm@||@com (HaiYing Wang) Date: Sun, 25 Aug 2019 11:07:51 -0400 Subject: [ESS] Possible to interact with julia-repl? In-Reply-To: <86o90dljem.fsf@gmail.com> References: <86o90dljem.fsf@gmail.com> Message-ID: Hi Vitalie, Thank you very much for your information. I find this is related to the variable "ess-local-process-name" or "ess-current-process-name". Here are some additional information. >From my script file, say "script.jl", if I execute an ESS command, say "C-c C-j", then the value of this variable "ess-local-process-name" is set to "julia". Now if I exit julia without killing the ESS process buffer, named "*julia*", and then execute a "julia-repl" command from "script.jl", a fully functioning julia-repl will start in the buffer "*julia*". If I kill the buffer "*julia*" after I exit julia, I would be asked to choose an ' > ess-dialect' if I execute a "julia-repl" command from "script.jl". The advantage of this is that the julia-repl will be recognized as an ESS process and all other scripts files can interact with it. For these two procedures, there is always an error message: Error running timer ?ess--idle-timer-function?: (wrong-type-argument stringp nil) Similar to the above situation, I find if I am able to set the value of "ess-local-process-name" to "julia", then the script file can interact with julia-repl. However, I don't know how to do this. It seems these variables cannot be changed by user. Best, HaiYing On Sun, Aug 25, 2019 at 4:49 AM Vitalie Spinu wrote: > > This is interesting. I didn't now about julia-repl. > > Your setup is not entirely clear. The "ess-dialect" prompt comes (most > likely) > from the ess-remote. So something (maybe julia-repl) installs `ess-remote`? > > In general, you can try `M-x ess-remote` from the julia-repl and if things > work, > then you could add `(ess-remote nil "julia")` to the julia-repl hook > (probably > `julia-repl-mode-hook`). > > Vitalie > > >> On Di, Aug 20 2019 23:50, HaiYing Wang via ESS-help wrote: > > > Dear All, > > > Version: Emacs GNU Emacs 26.2, ESS - version 18.10.2 > > OS: Ubuntu 18.04 > > > I have julia-repl minor mode enabled ( > https://github.com/tpapp/julia-repl).I start an ESS process for julia, > and then exit julia and kill that buffer. > > After that, if I execute a julia-repl comment, e.g., C-c C-p, then a > > julia-repl term model will promote and I would be asked to choose an ' > > ess-dialect'. If I choose julia, I will be able to interact with the > > julia-repl while all the ess key bindings work. > > > This result is ideal for me because I like the keybindings and > functioning > > from ess and like to have a fully functional julia repl. Is there a way > to > > config ESS so that I can chose which terminal ESS will start or interact: > > the default one or the one from julia-repl? > > > Any comments or hints are appreciated? Thank you very much! > > > Best, > > HaiYing Wang > > > [[alternative HTML version deleted]] > > > ______________________________________________ > > ESS-help at r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/ess-help > [[alternative HTML version deleted]]