To Developer Jeroen for Jupyter and R plugins

Dear Jeroen,

You had given me jupyter plugin as a workaround solution to R session, and had told me that it didn’t contain features of scripts like colouring and auto completion etc.

I want to know if that plugin has been updated. If that is so, will you provide me the latest one.

Also, is it possible that, while using Jupiter plugin, the prompt may be changed to R] instead of jupyter] when invoking ir kernel.

Moreover, is there any work on R plugin?

With regards,

Dr. A. K. Singh

There is no new version at the moment. Any new version will appear on Codeberg.

The prompt is something I was already implementing and should be released in the near future. Highlighting should be possible with some hacks, but I won’t have time to do that straight away. Completion should be possible with a little effort, but again no promises on when I’ll find time for it.

I am not an R user, so I have no comments on the plugin.

Thanks for replying.

These features would be sufficient for R users. Please inform me as soon as these features are included.

Thanks and regards,

Dr. A. K. Singh

Dear Jeroen,

I waited another 1 year in the hope that I would be able to do documentation in Texmacs with R output with proper syntax coloring and with proper R prompt.

Hope that this has got your consideration; otherwise, has there been any other development in the direction of R plugin.

Dear @akhileshsingh.igkv,

TeXmacs 2.1.5 has been released! Among many new features, this version includes a Jupyter plugin and a new R interface built on top of Jupyter. If you are still interested in using R within TeXmacs, you may find this new approach a suitable alternative. As always, any feedback is very welcome.

Hi Thanks a lot Jerome

I would like to try this option,

However I need some guide on how to launch it

regards

Pedro

I have not been able to get the Jupyter plugin to appear in the plugin list on Windows. The initialization command

(list-filter (jupyter-find-kernels) kernel-ok?)

returns an empty list. Maybe that is where TeXmacs stops when adding Jupyter to the plugin menu.

Any hints?

@pireddag Can you check what (jupyter-find-kernels) returns?

kernel-ok? checks whether there already is another plugin for this language. For example, I have the Python and R kernels installed, but TeXmacs already has plugins for these languages, so the list-filter command you quote is also empty for me.

You can choose which version of the plugin to run via “Insert -> Session -> Preferences”. The default currently is to use the built-in plugin instead of Jupyter.

I get only ("python3"). I have R installed and on the path. Any idea?

Do I understand correctly that one never runs the Jupyter plugin, but only the interfaces that are based on that plugin?

You also need to install a Jupyter “kernel”. This is an interface between Jupyter and the specific programming environment. For R this is IRkernel.

The Jupyter plugin communicates with the different Jupyter kernels, which in turn start their programming environment. The drawback is that it is an additional layer of protocol between TeXmacs and the environment. The advantage is that we don’t need to write (and maintain!) TeXmacs specific plugins if a good Jupyter kernel already exists.

I have not been able to get the R interface running on Windows. I’ll postpone the details to tomorrow, but might it be because I am using the Windows store version of Python? Might it be simpler to start from scratch with a different Python installation?

You can check which kernels are installed on the command line through jupyter kernelspec list (assuming this gets installed on Windows, of which I’m not sure).