DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter
MIT License
336 stars 34 forks source link

Defining startup code for the Jupyter kernel #117

Open PoulTur opened 6 years ago

PoulTur commented 6 years ago

Environment data

VS Code version: 1.22.1 Jupyter Extension version: 1.1.4 OS and version: Win10

Logs

N/A Output from Console window (Help->Developer Tools menu) N/A

Actual behavior

Docs say: "Defining startup code for the jupyter kernel The default startup code for Python is %matplotlib inline.".

What other options are supported? I tried e.g. %%timeit (to check execution times) or %xmode Plain, or e.g. import pandas as pd and then some pandas global settings.

Expected behavior

Update the docs to give a couple more examples what other options are available from here apart from %matplotlib inline

Steps to reproduce:

"jupyter.languages": [
    {
      "languageId": "python",
      "startupCode": [
        "%matplotlib inline",
        "%xmode Plain"  // e.g. should this be supported?
      ],
      ...

...