-
Notifications
You must be signed in to change notification settings - Fork 291
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
Support variables pane for R (was: Code highlight for R kernel) #5264
Comments
Thanks for the suggestion. We'd likely need help from the R community to get code highlighting and the variable explorer to work. The variable explorer uses a setting to determine how to query the R kernel for the value of a variable. Specifically this one: "jupyter.variableQueries":
[
{
"language": "python",
"query": "_rwho_ls = %who_ls\\nprint(_rwho_ls)",
"parseExpr": "'(\\w+)'"
},
{
"language": "julia",
"query": "whos",
"parseExpr": "'(\\w+)'"
}
]
If you added a setting for R, you might be able to figure out how get the kernel to return variable information. On top of that the R kernel has to support the jupyter 'introspection' message. Syntax highlighting is more about VS code supporting R as a default language. In the VS code insiders build, I believe R highlighting should already work. |
Thanks for your feedback. The code colorization issue will be addressed once VS Code adds native support for editing notebooks. Please see microsoft/vscode#91987. You can experiment by using VS Code insiders, which defaults to the new notebook experience. We're keeping this open to track the ability for R to display variables. |
R kernel supports the jupyter 'introspection' message. #710 But what I set could use the variableQueries.
all of these can't work |
There's likely something that causes a parsing error. You'd have to debug our variable code to figure out why. |
Iteration-candidate because it was on Discussions. |
Its been a while and there haven't been enough upvotes on this issue, |
So I am currently using the latest version of Jupyter (
v2021.2.0
) on my laptop. I find it very cool that I can also use R kernels, even with IntelliSense! yet I might be missing something because I would like to see the variables that I have created and if possible code highlight. Here is a screenshot.The text was updated successfully, but these errors were encountered: