将Jupyter R内核与Visual Studio代码一起使用 [英] Using jupyter R kernel with visual studio code
问题描述
对于python jupyter笔记本,我目前正在使用VSCode python扩展名.但是我找不到任何使用替代内核的方法.我对jupyter R内核特别感兴趣.
For python jupyter notebooks I am currently using VSCode python extension. However I cannot find any way to use alternative kernels. I am interested in jupyter R kernel in particular.
有什么方法可以在VSCode中使用R内核处理jupyter笔记本?
Is there any way to work with jupyter notebooks using R kernel in VSCode?
推荐答案
同意@essicolo,如果您100%坚持使用vscode,那就不行了.
Agreed with @essicolo, if you are 100% stuck on using vscode this is a no-go.
[关于内核]很抱歉,但是到目前为止,只有Python支持此功能.我们希望将来能支持其他语言.
[About kernels] Sorry, but as of right now this feature is only supported with Python. We are looking at supporting other languages in the future.
是的,即使您启动外部服务器,现在也是如此.我讨厌这么说,因为我们确实想支持更多的各种语言内核.但是我们从Python的重点开始,但在不久的将来我们仍将锁定在这一方面.多语种支持即将到来,但不会马上到来
Yeah, that's the case for now, even if you start an external server. I hate having to say that, as we really want to support more of the various language kernels. But we started out with a Python focus and we still are pretty locked into that for the near future. Polyglot support is coming, but it won't be right away
每位Microsoft员工IanMatthewHuff
per Microsoft Employee IanMatthewHuff
https://github.com/microsoft/vscode-python /issues/5109#issuecomment-480097310
前言-根据您问题的措辞,我假设您正在尝试从文本ide执行内联执行IRkernel
,而不必使用jupyter notebook/jupyterlab.
preface - based on the phrasing of your question, I am making the assumption that you are trying to perform IRkernel
in-line execution from your text ide without having to use a jupyter notebook / jupyterlab.
也就是说,如果您愿意走黑暗的一面,可能会有一些选择:
That said, if you're willing to go to the dark side, there might be some alternatives:
- nteract的 Atom IDE的氢内核-我仍然知道的唯一文本提示支持针对
IRkernel
的执行.我知道,我知道-它不是vscode
,但它与您现在可能会得到的接近.
- nteract's Hydrogen kernel for Atom IDE - the only text ide that I'm aware of that still supports execution against
IRkernel
. I know, I know - it's notvscode
but it's as close as you'll probably get for now.
- TwoSigma的烧杯笔记本-对我来说这是一个漫长的时光,但这是使用的一堆jupyter要支持多语种编辑,我不确定是否仍受支持,而且看来您对笔记本也不是很感兴趣.
- TwoSigma's Beaker notebook - it's been a lonngggg time for me but this a branch of jupyter that used to support polyglot editing, I'm not sure if that's still supported and it seems like you aren't that interested in notebooks anyway.
这篇关于将Jupyter R内核与Visual Studio代码一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!