VSCode Jupyter Notebook with Python, R, Julia [Visual Studio Code]

1littlecoder · Beginner ·📰 AI News & Updates ·5y ago

Key Takeaways

Installs and sets up Jupyter Notebook with R and Julia kernels in VSCode

Full Transcript

hey friends welcome to one little coder in this video we are going to look at a new feature on vs code which is the latest Jupiter extension so vs code already has a notebook extension but that was not a complete Jupiter extension so what Microsoft has done recently is that they have refactored their extension to have the replica of Jupiter notebook so you can read more about it but the biggest advantage of it is that now because you have got this extension which is which is almost like jupyter extension all you have to do is if you have uh R kernel or Julia konner or Scala kernel installed on your Jupiter notebook then you can use the same languages r or Julia or Scola other than python on your vs code notebook also so the previous case you can use only python on jupyter Notebook on vs code but right right now if you have the latest extension installed then you can also use any other languages for which the kernels you have already installed on your machine so this is a great thing for a lot of developers who you who do who use multiple languages for example now in this uh tutorial we are going to look at how to install an R kernel but before we move on if you have never used Jupiter Notebook on vs code I've already made a separate video quite some time back I'll link that video in description so you can have a look at it but if you have not then very small uh brief uh instruction of how to do that first you have to go to this GitHub repository I'll link that in the description please give a thumbs up if you like this video and please subscribe if you like this channel uh you can go and then click uh this download this is a vs code Insider it's not shipped as part of you know uh the main production you have to install vs code Insider once you have that then you have to make sure that you have got some jupyter kernel so in your case if you have installed already python or anac so you would have this up and running already by this time so you don't have to be bothered about it the third step is you have to install the jupyter extension of for vs code so that is is quite simple you can either install it from here or you can go to uh the vs code and type Jupiter and then you can get it installed from there so once you do all these things you are successfully up and running all you have to do is you have to go to your vs code click command shift p and then create a new blank jupyter notebook and that's going to create a notebook for you so you have uh Python and you have the jupyter notebook in place so that is done for you so what do we do next uh the next step is now we we are going to look at how to install R kernel for your uh jupyter notebook so if you want to use R so let me just show python here um print happy into three I've got happy three and you have got this right so let's say if you want to use R in your jupyter notebook on vs code what do you do so the step is simple so first main thing is you have to make sure that you have got r on your machine once you have that you have to install R kernel so all you have to just copy this this is I'll link this link also so you have to install R kernel you can go here and uh install R uh let's invoke R First Once you have invoked R you can say install. packages I colal small then you install it going to ask you to select a mirror session uh you have to select the mirror once you select that it is going to go ahead with the installation once you do that then you have to invoke that package uh like this that is done all you have to do is invoke it now you have successfully got our kernel now we can quit your R kernel if you don't want don't save the workspace now that is done now all you have to do is close your vs code that has been re open now you can actually see that I can go create a new jupyter notebook at the same time I can go click Python 3 and then you can see I've got r two R kernel install because I've got one before so after I install it all I have to do is uh let's say plot Iris very popular there is there is some uh bug but you can see that you can use or you can say h of empty cars PG you know that you have got R install we have got R successfully installed we can give one more try uh now in this case let's try to install Julia just to recap until now what we have done is we have learned about the latest uh Julia sorry latest Jupiter extension for vs code which is completely refactored Julia uh sorry Jupiter extension which means you can use any language unlike before where you could use only python so if you have got a kernel install for a particular language you can take that you can use the same control you don't have to separately do any installation now let's look at how to install Julia kernel on Notebook Jupiter Julia kernel Jupiter notebook so once we do that we are going to get some support going to say we have to do add Julia so uh if we have to do that uh alternatively you can Julia image python do this type okay let's do add Julia for that first we have to invoke Julia um reppel let's invoke Julia repel now add Julia there is an error add I Julia okay it say there is an error um token Julia after end of expression this let's see uh we have to enter into the package mode now do add Julia okay now it's installing I'm new to Julia so I hope if you also face this error this would be helpful to you it's getting installed after it installs we have to probably take our vs code once again and to see if we have got we can close this don't save anything close it okay looks like it has been successfully installed now let's go and click command shift p which will tell us select a kernel you can click select a kernel and then okay first create a blank jupyter notebook then select the kernel you can click here and select it uh oh we have got Julia in place I've never written any code in Julia so just let's look for simple for Loop Julia hello world okay I think we just have to say uh let's call it um hello to good morning and then you type hello you have good morning nice let's try something it doesn't work like python I was trying but basically basically you get the idea so now you have got Julia in place uh youve got python in place different versions of python you've got R in place so it is one vs code extension uh but now you have got support for multiple languages which means uh all you have to do is you have to go to your vs code the same way you used to use jupyter notebook now you can just go to vs code all you have to do is close it don't save it command shift p uh create a blank notebook and once you create a blank notebook you can select whatever colel that you want you select the kernel that you like and then you can start write your code uh so let's say in my case if I want R then I can click R then I can just basically say R and um Range okay I think I'm getting confused between multiple languages uh yeah this is a problem I'm getting confused between multiple so I have ignore this error I think this is an error because it's a new extension there is some error that is um but you can just ignore it as you move down uh it wouldn't have that error in place so you can just ignore that error and move on so basically uh what we have seen a quick overview is that we learned about the new Jupiter extension for vs code and uh we also learned what is the biggest change the biggest change is that now you can actually use any language or for which you have got uh uh kernel installed on Jupiter and we also learned how to install uh Jupiter extension for vs code if you have never done that please don't worry I've got a video I can link that video and after that we also learned how to install our kernel on jupyter Notebook and also we saw a demo of how we used R and then we also installed Julia kernel uh for installing R so I hope this video was helpful and uh if you have any comments or if you have any difficulties why you go through this process please let me know in the comment section if not uh I'll be very happy to uh I'll be very happy if you can like this video share word about this video to your friends and uh I hope uh you also start using vs code on uh jupyter on vs code which is quite handy if you have one editor and then you can do multiple things it's really handy thank you so much for watching this video until next video stay safe take care

Original Description

Microsoft has refactored its VSCode Jupyter Extension to support all Jupyter Noteboook Kernels.That means, You can use languages other than Python on your VSCode Jupyter Notebook. Languages like R and Julia. In this Video you'll learn how to use R and Julia on VSCode Jupyter Notebook Setup Jupyter Notebook within VSCode https://www.youtube.com/watch?v=IBdhwrfgP9c VSCode Jupyter - https://github.com/microsoft/vscode-jupyter R Kernel for Jupyter Notebook - https://irkernel.github.io/installation/ Julia Kernel for Jupyter Notebook - https://github.com/JuliaLang/IJulia.jl
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from 1littlecoder · 1littlecoder · 0 of 60

← Previous Next →
1 How to create your Free Data Science Blog on Github with Fastpages from Fastai
How to create your Free Data Science Blog on Github with Fastpages from Fastai
1littlecoder
2 Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
1littlecoder
3 Create your first Data Science Web App using R Shiny
Create your first Data Science Web App using R Shiny
1littlecoder
4 How to create a Reproducible Example in R using reprex
How to create a Reproducible Example in R using reprex
1littlecoder
5 No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
1littlecoder
6 Scrape HTML Table using rvest and Process them for insights using tidyverse in R
Scrape HTML Table using rvest and Process them for insights using tidyverse in R
1littlecoder
7 Google Teachable Machine Learning Build No Code AI solution
Google Teachable Machine Learning Build No Code AI solution
1littlecoder
8 Create meaningful fake tidy datasets in R using fakir [#rstats Package]
Create meaningful fake tidy datasets in R using fakir [#rstats Package]
1littlecoder
9 How to enable using R Programming with Visual Studio VS Code
How to enable using R Programming with Visual Studio VS Code
1littlecoder
10 Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
1littlecoder
11 Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
1littlecoder
12 Intro to Google Colab - How to use Colab
Intro to Google Colab - How to use Colab
1littlecoder
13 Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
1littlecoder
14 Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
1littlecoder
15 Do you want a career in Data Science - Tamil Webinar
Do you want a career in Data Science - Tamil Webinar
1littlecoder
16 Android Smartphone Analysis in R [Live Coding Screencast]
Android Smartphone Analysis in R [Live Coding Screencast]
1littlecoder
17 Programmatically create Images, Memes, Watermarks using Python with imgmaker
Programmatically create Images, Memes, Watermarks using Python with imgmaker
1littlecoder
18 Kaggle Walkthrough to get you started with Data Science - Webinar
Kaggle Walkthrough to get you started with Data Science - Webinar
1littlecoder
19 Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
1littlecoder
20 Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
1littlecoder
21 Excel to R - Pivot + Bar Chart in Excel  & R using tidyverse [Live Coding]
Excel to R - Pivot + Bar Chart in Excel & R using tidyverse [Live Coding]
1littlecoder
22 Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
1littlecoder
23 5 websites to get Free Real-World Datasets for Data Science/ML Projects
5 websites to get Free Real-World Datasets for Data Science/ML Projects
1littlecoder
24 Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
1littlecoder
25 Correlation-alternative PPS (Predictive Power Score) Python Package Demo
Correlation-alternative PPS (Predictive Power Score) Python Package Demo
1littlecoder
26 Automated Website Screenshots in R using {webshot}
Automated Website Screenshots in R using {webshot}
1littlecoder
27 Installing Custom RStudio Theme (Synthwave85)
Installing Custom RStudio Theme (Synthwave85)
1littlecoder
28 Analyse Google Trends Search Data in R using {gtrendsR}
Analyse Google Trends Search Data in R using {gtrendsR}
1littlecoder
29 3 Tips to ask question on Stack Overflow the right way to get answers
3 Tips to ask question on Stack Overflow the right way to get answers
1littlecoder
30 Learn Data Science with R - Mini Projects - Web Scraping Zomato
Learn Data Science with R - Mini Projects - Web Scraping Zomato
1littlecoder
31 Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
1littlecoder
32 GET Hackernews Front Page Results using REST API in R
GET Hackernews Front Page Results using REST API in R
1littlecoder
33 Quickly deploy ML WebApps from Google Colab using ngrok
Quickly deploy ML WebApps from Google Colab using ngrok
1littlecoder
34 Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
1littlecoder
35 Plotly Interactive Plots as Pandas Plotting Backend df.plot()
Plotly Interactive Plots as Pandas Plotting Backend df.plot()
1littlecoder
36 Stack Overflow Developer Survey 2020 Highlights for New Programmers
Stack Overflow Developer Survey 2020 Highlights for New Programmers
1littlecoder
37 Matplotlib Animation Charts in Python using Celluloid
Matplotlib Animation Charts in Python using Celluloid
1littlecoder
38 Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
1littlecoder
39 Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
1littlecoder
40 Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
1littlecoder
41 Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
1littlecoder
42 Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
1littlecoder
43 ggplot2 Text Customization with ggtext | Data Visualization in R
ggplot2 Text Customization with ggtext | Data Visualization in R
1littlecoder
44 Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
1littlecoder
45 YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
1littlecoder
46 Matplotlib Animated Bar Chart Race in Python | Data Visualization
Matplotlib Animated Bar Chart Race in Python | Data Visualization
1littlecoder
47 Simple Python GUI Development using {guietta}
Simple Python GUI Development using {guietta}
1littlecoder
48 #8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
#8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
1littlecoder
49 Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
1littlecoder
50 Github New Feature Profile Summary/Mini-Resume - Profile Views
Github New Feature Profile Summary/Mini-Resume - Profile Views
1littlecoder
51 Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
1littlecoder
52 What is OpenAI GPT-3 - Hype, Examples, Worries
What is OpenAI GPT-3 - Hype, Examples, Worries
1littlecoder
53 Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
1littlecoder
54 Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
1littlecoder
55 GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
1littlecoder
56 How to use Advanced Google Search to extract Email Ids from Linkedin
How to use Advanced Google Search to extract Email Ids from Linkedin
1littlecoder
57 Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
1littlecoder
58 Flow - R Package to visualize code logic, functions as a Flow Diagram
Flow - R Package to visualize code logic, functions as a Flow Diagram
1littlecoder
59 Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
1littlecoder
60 Create a Pencil Sketch Portrait with Python OpenCV
Create a Pencil Sketch Portrait with Python OpenCV
1littlecoder

Related Reads

📰
EU tech chief and Tim Cook hold ‘constructive’ talks as Siri AI stays blocked in Europe
EU tech chief and Tim Cook discuss Siri AI blockade in Europe, describing talks as 'constructive'
The Next Web AI
📰
Sonnet 5 launches: Opus performance at lower cost
Sonnet 5 launches with improved performance at a lower cost, rivaling Opus
Dev.to · The Dev Signal
📰
Claude Sonnet 5 Didn’t Just Get Smarter. It Changed the Economics of AI.
Learn how Claude Sonnet 5's advancements changed the economics of AI, making 'good enough AI' viable for production, and understand the implications for AI development and deployment
Medium · AI
📰
Claude Sonnet 5 Didn’t Just Get Smarter. It Changed the Economics of AI.
Claude Sonnet 5's improved AI capabilities have transformed the economics of AI, making it more viable for production
Medium · Machine Learning
Up next
Man dies after horror Gold Coast house fire; high-speed Sydney motorway pursuit | 9 News Australia
9 News Australia
Watch →