Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

How do I use snippets for Jupyter Notebook with VSCode?

$
0
0

I've been using VSCode for a while and at the moment I am trying to set up snippets to work. They seem to work well with simple Python (.py) files but not with Jupyter Notebook (.ipynb) files. Is there any way to make them work together?

The snippet is right here:

"Create a new figure":{
    "scope": "python",
    "prefix": "nf",
    "body": [
        "plt.figure(figsize=(9, 9))",
        "",
        "$1",
        "",
        "plt.show()"
    ]
}

Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>