Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippets for jupyter/anaconda notebook #88

Open
ZenithClown opened this issue Oct 16, 2022 · 0 comments
Open

Snippets for jupyter/anaconda notebook #88

ZenithClown opened this issue Oct 16, 2022 · 0 comments

Comments

@ZenithClown
Copy link

Hi, jupyter or anaconda notebook supports snippets using nbextensions and follows a similar structure like vs code. However, this does not support a placeholder as of now. Can we feature engineer this?

Structure for jupyter:

{
  "snippets" : [
    {
      "name" : "example",
      "code" : [
        "# This is an example snippet!",
        "# To create your own, add a new snippet block to the",
        "# snippets.json file in your jupyter nbextensions directory:",
        "# /nbextensions/snippets/snippets.json",
        "# `jupyter --data-dir` prints the working directory",
        "import this"
      ]
    },

    {
      "name" : "new-example",
      "code" : [
        "# This is a new example snippet!",
        "import new"
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant