Get more updates and further details about your project right in your mailbox.
The best time to establish protocols with your clients is when you onboard them.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Notebooks are where data scientists process, analyze, and visualize data in an iterative, collaborative environment. It is also a great tool for experimentation with code. In this article we are going to see how to set up notebooks in VSCode for both python and javascript, and some basic use cases of them.
Prerequisites
Install VSCode, Python and NodeJS.
Links for downloading and installing are listed below.
Python Notebook
Go to the extensions tab and search for jupyter notebook, and install the first search results (or) install via this link.
To create a new notebook open the command palette (Windows: Ctrl + Shift + P, macOS: Command + Shift + P) and select the command Create: New Jupyter Notebook
(or)
Create a new file with .ipynb extension.
After creating a notebook click on Select kernel in the right top corner and choose a python version.
Inside a notebook you can run your code in cells. You can use the defined variables across your notebook. To add new cells in the notebook click + Code. To run your code from the cell simply click the play button in the left side of the cell.
You can also run functions in the cell.
Javascript Notebook
Go to the extensions tab and search for Node.js Notebooks (REPL), and install the first search results
(or) install via this link
To create a new notebook open the command palette (Windows: Ctrl + Shift + P, macOS: Command + Shift + P) and select the command Notebook: Node.js Notebook
(or)
create a new file with .nnb extension.
After creating a notebook click on Select kernel in the right top corner and choose a Node version.
Inside a notebook you can run your code in cells. You can use the defined variables across your notebook. To add new cells in the notebook click + Code. To run your code from the cell simply click the play button in the left side of the cell.
You can also run functions in the cell.
Advantages of Notebooks