create account

Using Jupyter Notebooks in VS Code by themarkymark

View this thread on: hive.blogpeakd.comecency.com
· @themarkymark ·
$22.09
Using Jupyter Notebooks in VS Code
https://i.imgur.com/3BZRxLC.png

As you probably know by now, I am a huge VS Code fan.  VS Code has made all other text editors obsolete. I still use Sublime Text for my non-programming text editing, but when developing anything more than a few lines of code, VS Code is my tool of choice.

If you have been following my **Python Tips** series, you might have seen my post on [Jupyter Notebooks](https://peakd.com/programming/@themarkymark/python-tips-jupyter-notebooks).  A tool I frequently use for interactive development and testing.

Jupyter notebooks is similar to an interactive python session like REPL, but your code is saved and you can integrate things like charts, dataframes, and images.  I frequently use notebooks when I need to test a theory and build a complex function as it allows me to visualize data easier and get quick feedback on what I am doing.

No longer do you have to run your own Jupyter Notebooks server, you can just start a notebook directly in VS Code.

If you are doing Python development, you really need to first install the Python extension for VS Code as it adds a ton of functionality.

https://i.imgur.com/Hl7huX7.png

Once the extension is installed, you can launch a Jupyter notebook with the command palette.

Just open up the command palette with Control-Shift-P and type in Create New...

https://i.imgur.com/yINEbDx.png

Once you do that, it will launch Jupyter and start a new notebook.

https://i.imgur.com/xxIa9fb.png

From there, you can do anything you can do in Jupyter Notebooks, directly in VS Code.

If you do not have the Jupyter packages installed, VS Code will prompt you to install it.

https://i.imgur.com/tVABclQ.png

I also recommend you update to Python 3.8.  As you can see here, this older environment is only running 3.6.5 but I wanted to change to one that didn't have the Jupyter modules installed.

Using one of the quick Pandas examples, you can see VS Code Jupyter Notebook support is fantastic and works very similar to Jupyter Notebooks.

https://i.imgur.com/lltjbSX.png


---

<center>Securely chat with me on [Keybase](https://keybase.io/officialmarky)
<center>https://images.hive.blog/0x0/https://steemitimages.com/DQmcWxV1dpA1eAtw2ipwZiWZkydyVNU5LaLa2Ak1GUnbGmS/The-Marky-Mark.png </center>
# <center>  [Why you should vote me as witness](https://peakd.com/witness-category/@themarkymark/why-you-should-vote-for-themarkymark-as-witness)  </center> #

[![](https://steemitimages.com/DQmPkQhAQceC7aHr4Gy5GKv7LMoiy47P7PyaNCeZBHMpFke/white-bg-with-drop-shadow.gif)](https://hivesigner.com/sign/account-witness-vote?witness=themarkymark&approve=1)     

πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 307 others
πŸ‘Ž  , , , ,
properties (23)
authorthemarkymark
permlinkusing-jupyter-notebooks-in-vs-code
categoryprogramming
json_metadata{"app":"peakd/2020.09.4","format":"markdown","tags":["programming","development","python","technology","vscode","palnet","neoxian"],"users":["themarkymark"],"links":["/programming/@themarkymark/python-tips-jupyter-notebooks","https://keybase.io/officialmarky","/witness-category/@themarkymark/why-you-should-vote-for-themarkymark-as-witness","https://hivesigner.com/sign/account-witness-vote?witness=themarkymark&amp;approve=1"],"image":["https://i.imgur.com/3BZRxLC.png","https://i.imgur.com/Hl7huX7.png","https://i.imgur.com/yINEbDx.png","https://i.imgur.com/xxIa9fb.png","https://i.imgur.com/tVABclQ.png","https://i.imgur.com/lltjbSX.png","https://steemitimages.com/DQmcWxV1dpA1eAtw2ipwZiWZkydyVNU5LaLa2Ak1GUnbGmS/The-Marky-Mark.png","https://steemitimages.com/DQmPkQhAQceC7aHr4Gy5GKv7LMoiy47P7PyaNCeZBHMpFke/white-bg-with-drop-shadow.gif"]}
created2020-09-12 13:59:24
last_update2020-09-12 13:59:24
depth0
children4
last_payout2020-09-19 13:59:24
cashout_time1969-12-31 23:59:59
total_payout_value13.339 HBD
curator_payout_value8.751 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,627
author_reputation1,774,102,101,992,747
root_title"Using Jupyter Notebooks in VS Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,588,581
net_rshares84,215,872,103,158
author_curate_reward""
vote details (376)
@bib15hash ·
Hi there, what is your opinion regarding competitive programming with VS Code?  I have seen some tutorials on  VS Code/Sublime text editor setup for the same, and now I am confused which way should I proceed. Any suggestions?
properties (22)
authorbib15hash
permlinkqgjvi1
categoryprogramming
json_metadata{"app":"hiveblog/0.1"}
created2020-09-12 14:42:03
last_update2020-09-12 14:42:03
depth1
children1
last_payout2020-09-19 14:42:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length225
author_reputation2,679,310,546,435
root_title"Using Jupyter Notebooks in VS Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,589,150
net_rshares0
@themarkymark ·
I have not tried competitive programming so I can’t really offer much there.  

I have seen and done some collaborative and looked at a few systems that worked with sublime but I never used it much. 
properties (22)
authorthemarkymark
permlinkre-bib15hash-qgjxj4
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2020.09.4"}
created2020-09-12 15:25:54
last_update2020-09-12 15:25:54
depth2
children0
last_payout2020-09-19 15:25:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length199
author_reputation1,774,102,101,992,747
root_title"Using Jupyter Notebooks in VS Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,589,748
net_rshares0
@rafaelaquino ·
Thank you for sharing your knowledge. Publications like these encourage me to learn and research more every day about everything we can do with python. Thank you!
properties (22)
authorrafaelaquino
permlinkqgkjd8
categoryprogramming
json_metadata{"app":"hiveblog/0.1"}
created2020-09-12 23:17:36
last_update2020-09-12 23:17:36
depth1
children0
last_payout2020-09-19 23:17:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length162
author_reputation110,345,581,859,184
root_title"Using Jupyter Notebooks in VS Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,595,660
net_rshares0
@xves ·
Sweet post, Marky! I'm also a fan of VS Code but I don't do Python. 

I'd love to start seeing your posts in the Programming Community aswell as just under my Following Feed (I cross-posted this one to it, hope you don't mind). πŸ˜‰ 
properties (22)
authorxves
permlinkre-themarkymark-qgjy9x
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2020.09.4"}
created2020-09-12 15:42:00
last_update2020-09-12 15:42:00
depth1
children0
last_payout2020-09-19 15:42:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length230
author_reputation12,295,059,905,546
root_title"Using Jupyter Notebooks in VS Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,590,017
net_rshares0