Using R and Python together in Quarto and Neovim

  Рет қаралды 1,829

Jannik Buhr

Jannik Buhr

4 ай бұрын

Today, we learn to utilize the R package reticulate (rstudio.github.io/reticulate/) to combine the power of R and python directly Neovim as well as a quick trick to interactively explore R dataframes.
Config: github.com/jmbuhr/quarto-nvim...
Most important lines for the reticulate keybinding: github.com/jmbuhr/quarto-nvim...
Note: The config used in this video is *not* the slimmed down version from my previous video about adding Quarto to kickstart.nvim. But after this video I am now very tempted to do a bit of spring cleaning on the currently rather large quarto-nvim-kickstarter, to get it as snappy as kickstart.nvim. So stay tuned!

Пікірлер: 18
@elliotalderson9517
@elliotalderson9517 2 ай бұрын
impressive, very nice
@mrbonzzai
@mrbonzzai 4 ай бұрын
Thank you Jannik. Quarto is brilliant!
@christopherboon1677
@christopherboon1677 2 ай бұрын
Awesome content Mr. Jannik. I have been following your videos since your kickstart post and I have been loving the Quarto and Nvim combo! I am having some difficulty getting R terminal to call python chunks via reticulate. Could you make an in-depth video about this? Currently, I can :QuartoPreview and have R call python code via reticulate. But using the R repl throws an error with python code. I think I am missing the piece that enters/exits python repl within R term.
@jmbuhr
@jmbuhr 2 ай бұрын
These are the functions you'll have to steal from my config to make it work: github.com/jmbuhr/quarto-nvim-kickstarter/blob/37a7b4448382770e8aeca973f4bc9beb8542b3dd/lua/config/keymap.lua#L51 and github.com/jmbuhr/quarto-nvim-kickstarter/blob/37a7b4448382770e8aeca973f4bc9beb8542b3dd/lua/config/keymap.lua#L278-L284
@bassamsaleh8034
@bassamsaleh8034 3 ай бұрын
Really enjoyed the video, thanks! How do you get matplotlib plots to open in their own window outside neovim? Seems like a handy trick!
@jmbuhr
@jmbuhr 3 ай бұрын
That's not a trick, it's the default behavior of matplotlib. See matplotlib.org/stable/users/explain/figure/backends.html#the-builtin-backends
@bassamsaleh8034
@bassamsaleh8034 3 ай бұрын
@@jmbuhr thank you, it worked
@samanderson4231
@samanderson4231 4 ай бұрын
How do you move the terminal to the bottom like you did?
@jmbuhr
@jmbuhr 4 ай бұрын
J. See :help for more window controls or wait half a second after for the which-key pop-up to show the options.
@youtubeaccount1152
@youtubeaccount1152 4 ай бұрын
What's your window manager?
@jmbuhr
@jmbuhr 4 ай бұрын
pop-shell on pop-os
@phamcongtoan1399
@phamcongtoan1399 4 ай бұрын
Can you teach me python for data science briefly and completely?😢
@jmbuhr
@jmbuhr 4 ай бұрын
I'm afraid briefly and completely are quite the opposites of each other, but jakevdp.github.io/PythonDataScienceHandbook/ is a great starting point.
@phamcongtoan1399
@phamcongtoan1399 4 ай бұрын
@@jmbuhr I already know Java, so I'll make a brief request. I will carefully review this document, thank you very much!
@phamcongtoan1399
@phamcongtoan1399 4 ай бұрын
@@jmbuhr Actually, I need python to learn AI, not data science, but it's still the same, right?
@jmbuhr
@jmbuhr 4 ай бұрын
The book also has a chapter on machine learning, so that should be interesting for you.
@PeterStJ
@PeterStJ 3 ай бұрын
Audio is very bad, nothing comes out...
@jmbuhr
@jmbuhr 3 ай бұрын
I'll increase the levels for future videos, until then you can go to your OS audio settings and enable increase above 100%
10 Nooby Mistakes Devs Often Make In Python
24:31
Indently
Рет қаралды 48 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 21 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 14 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
From kickstart.nvim to Data Science in 20 minutes
20:40
Jannik Buhr
Рет қаралды 15 М.
Using Quarto with R and Python for reports, slides, and web publishing
31:36
Equitable Equations
Рет қаралды 3,8 М.
R vs Python
7:07
IBM Technology
Рет қаралды 308 М.
A UX Expert Fixes My Tmux
6:58
DevOps Toolbox
Рет қаралды 68 М.
Python Vs R (funny!)
3:23
Luke Barousse
Рет қаралды 126 М.
Marks in Vim Are A Game Changer
11:01
NeuralNine
Рет қаралды 14 М.
I Tried Every AI Coding Assistant for Neovim
17:30
DevOps Toolbox
Рет қаралды 25 М.
Elevate Your Reports to the Next Level with Python and Quarto
4:50
VDSML Content Ambassadors
Рет қаралды 4,3 М.
What is the best Neovim Distribution?
6:29
Jannik Buhr
Рет қаралды 2,9 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 21 МЛН