Coder Social home page Coder Social logo

donjayamanne / vscodejupyter Goto Github PK

View Code? Open in Web Editor NEW
335.0 18.0 34.0 1.25 MB

Jupyter for Visual Studio Code

Home Page: https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter

License: MIT License

TypeScript 64.07% JavaScript 0.76% CSS 3.69% HTML 0.28% Python 31.20%
jupyter jupyter-notebook osx linux ipython ipython-notebook vscode

vscodejupyter's Introduction

Deprecated

This extension is no longer being maintained and all of its functionality has been (or will be) placed into the Microsoft Python extension.

Please download the Microsoft Python Extension instead.

Feel free to submit new issues or feature requests on the Microsoft Python Extension.

Jupyter

An extension with rich support for Jupyter

Quick Start

Sample Python usage

  • Create a Python file with the following text
#%%
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np

x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show() 
  • Click on the code lens Run Cell

Run Cell Hot key as in Chrome

  • If you want to run cell with Ctrl+Enter, add those code in keybindings.json.
{ "key": "ctrl+enter",      "command": "jupyter.execCurrentCell",
                                  "when": "editorTextFocus"
}

Connect to Remote Jupyter kernel on Server / Docker

Try this to connect to a remote Jupyter kernel running on a server, or inside Docker container:

  1. Make sure Jupyter, Notebook, and jupyter_kernel_gateway packages are installed. They are all included by default in Anaconda installation, but if you are using PIP you may need to install them manually.
  2. Run following commands on Linux: (Windows users will need to adapt these commands for their env)
# Generate config file for KernelGateway
jupyter kernelgateway --KernelGatewayApp.generate_config=True

# Generate config for Jupyter Notebook
jupyter notebook --generate-config --allow-root

# Append appropriate values to both config files
echo -e "c.JupyterWebsocketPersonality.list_kernels = True" >> ~/.jupyter/jupyter_kernel_gateway_config.py
echo -e "c.NotebookApp.allow_root = True" >> ~/.jupyter/jupyter_notebook_config.py
  1. Start a remote Jupyter Notebook or headless KernelGateway
  2. Find the token in the output of the Jupyter server logs: http://jupyter-notebook.readthedocs.io/en/latest/security.html

Then in VS Code:

  1. ctrl+shift+p
  2. Jupyter: Enter the url of local/remote Jupyter Notebook
  3. Select existing kernels from the drop-down list, or start a new kernel
  4. Select language for the kernel from drop-down list: e.g., "Python 3"

For further information and details continue through to the documentation.

  • Contributions are always welcome. Fork it, modify it and create a pull request.
  • Any and all feedback is appreciated and welcome.

Version 1.1.3 (5 May 2017)

  • Notebook not detected #46

Version 1.1.2 (24 April 2017)

  • Fix high CPU usage #40

Version 1.1.1 (13 April 2017)

  • Bug fix (extension fails to load)
  • Increase timeout waiting for Jupyter Notebook to start

Version 1.1.0 (12 April 2017)

  • Preliminary support for older versions of Jupyter Notebook (< 4.2.0)

Scientific Tools

Source

GitHub

License

MIT

vscodejupyter's People

Contributors

citizen428 avatar danhper avatar furiouslycurious avatar garaemon avatar mosdeo avatar rchiodo avatar tomitrescak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscodejupyter's Issues

Having exception in the result tab will prevent running any cell, even if you correct the exception source

Environment data

VS Code version:1.11.2
Jupyter Extension version:1.1.1
OS and version: windows 10 creator update

Actual behavior

I am not sure if this is an issue or normal behavior but it is different than the origional jupyter notebook

create a new cell :

#%%
print 'hello'

Now run the cell the output is :
hello

now change the word print to priint to introduce error:

#%%
priint 'hello'

now the output :
File "", line 3
priint 'hello '
^
SyntaxError: invalid syntax

now correct your code.. run the cell .. nothing will happen.. the result panel is dead !

till you clear the result
then you run your code

the problem is that clearing the result will erase results from previous cells.

Wrong current working directory when there's only a single file open

From @Agnpalm on January 18, 2017 14:54

VS Code version: 1.8.1
Python Extension version: 0.5.6
Python Version: 3.6.0
OS and version: Windows 10 x64

When I open a single file instead of a folder, the current working directory is 'C:\Program Files (x86)\Microsoft VS Code'. It would be much better if it would be the same folder as where the .py file is, as that is the expected behavior. This works as expected if I instead open the folder with the file.

For now I've added a os.chdir(...) at the top of the file. I first tried using the __file__ constant since I don't want hardcoded paths in my code, but __file__ isn't defined when running Jupyter cells, I guess since it's running code in REPL mode.

Copied from original issue: DonJayamanne/pythonVSCode#653

Suggestion: Add better support for ipython cell mode

From @talkaminker on December 28, 2016 10:37

This is a suggestion to add better support for cell execution mode.
Currently the cell execution mode is a bit too simple

  1. There should be a clear horizontal line separator between two cells (and then the Run Cell button should disappear)
  2. the output panel should have a clear separator between two outputs, so that you could easily tell when a cell's output end and another cell output begins.
  3. There should be a console in the output panel to allow small bits of code to be executed as if they where cells (like regular python console) with live auto-complete from the running ipython kernel.
    Take a look a spyder to see what I mean:
    spyder

Also, Great plugin!

Copied from original issue: DonJayamanne/pythonVSCode#606

Jupyter: Setting Remote Kernel

From @anjueappen on October 13, 2016 20:40

Is there a way to set a custom IP for accessing a remote Jupyter notebook? Didn't see anything that we could configure, currently.

Copied from original issue: DonJayamanne/pythonVSCode#383

Scroll output window when outputting to Jupyter window

From @Agnpalm on January 18, 2017 15:36

When printing output to Jupyter the output is added at the bottom (as expected), but the output window doesn't scroll down to show it. This makes it tedious to run a cell, and then switch to the mouse and scroll down to the bottom. I found myself turning off 'Append Results' to always see the latest output.

I think it makes sense to scroll to the bottom when new data is available. Maybe put in a check to see if the user has scrolled up to look at something in the history, and not automatically scroll down if that is the case.

Also, I think it would be preferable if the scroll was animated, to make it obvious that new output was added. I'm not a web developer, but I found this library with a quick search. Animations can be both beneficial and annoying depending on implementation and personal taste, so maybe make the animation time configurable if you add this.

Copied from original issue: DonJayamanne/pythonVSCode#656

Jupyter/IPython REPL enhancement

From @gandhis1 on October 20, 2016 1:19

Currently, the Jupyter implementation provides results in a separate pane, but with limited visual cues on the relation of code and outputs.

For instance, Atom's Hydrogen - the user is running a specific code block at a time, and the results show up right below the code. If given code does not produce anything, nothing shows up, but the user is aware that it ran. Right now, if I run "Run Selection/Line" on code that does nothing, e.g. imports, there is no visual feedback to see that it ran.

image

Another alternative/example would be the PyQT IPython REPL, which has a different layout, but still the same core idea:

image

I think one of the big use cases for Jupyter is going to be interactive coding, which isn't nearly as seamless right now as it could be.

Copied from original issue: DonJayamanne/pythonVSCode#401

command 'jupyter.startNotebook' not found

Environment data

VS Code version: 1.12.0
Jupyter Extension version: 1.1.2
OS and version: MacOS 10.11.6

Logs

Output from Jupyter output panel

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

Overwriting extension <<.erb>> to now point to mime <<text/x-erb>>
(anonymous) @ mime.ts:59
extensionHost.ts:285[Extension Host] Looking for parseable documents...
extensionHost.ts:285[Extension Host] Found all parseable documents.
extensionHost.ts:285[Extension Host] Parsing documents and looking for CSS class definitions...
extensionHost.ts:285[Extension Host] Sumary:
extensionHost.ts:285[Extension Host] 48 parseable documents found
extensionHost.ts:285[Extension Host] 4457 CSS class definitions found
extensionHost.ts:285[Extension Host] 1090 unique CSS class definitions found
extensionHost.ts:285[Extension Host] 1 failed attempts to parse. List of the documents:
extensionHost.ts:285[Extension Host] /Users/rainer/project/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css

extensionHost.ts:285[Extension Host] Activating extension `donjayamanne.jupyter` failed: Cannot read property 'indexOf' of undefined.
d.logExtensionHostMessage @ extensionHost.ts:285
extensionHost.ts:285[Extension Host] Activating extension `donjayamanne.jupyter` failed:  Cannot read property 'indexOf' of undefined
d.logExtensionHostMessage @ extensionHost.ts:285
extensionHost.ts:285[Extension Host] Here is the error stack:  TypeError: Cannot read property 'indexOf' of undefined
    at getAbsolutePath (/Users/rainer/.vscode/extensions/donjayamanne.jupyter-1.1.2/out/src/common/configSettings.js:57:20)
    at PythonSettings.initializeSettings (/Users/rainer/.vscode/extensions/donjayamanne.jupyter-1.1.2/out/src/common/configSettings.js:30:27)
    at PythonSettings (/Users/rainer/.vscode/extensions/donjayamanne.jupyter-1.1.2/out/src/common/configSettings.js:20:14)
    at Object.<anonymous> (/Users/rainer/.vscode/extensions/donjayamanne.jupyter-1.1.2/out/src/common/configSettings.js:51:33)
    at Object.<anonymous> (/Users/rainer/.vscode/extensions/donjayamanne.jupyter-1.1.2/out/src/common/configSettings.js:106:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Function.Y.o._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:366384)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/rainer/.vscode/extensions/donjayamanne.jupyter-1.1.2/out/src/common/procUtils.js:8:18)
    at Object.<anonymous> (/Users/rainer/.vscode/extensions/donjayamanne.jupyter-1.1.2/out/src/common/procUtils.js:359:3)
    at Module._compile (module.js:571:32)
mainThreadExtensionService.ts:111Activating extension `donjayamanne.jupyter` failed: Cannot read property 'indexOf' of undefined.
t.$localShowMessage @ mainThreadExtensionService.ts:111
messageService.ts:125command 'jupyter.startNotebook' not found
e.doShow @ messageService.ts:125
messageService.ts:125command 'jupyter.selectExistingNotebook' not found
e.doShow @ messageService.ts:125
2extensionHost.ts:285[Extension Host] TextEditor is closed/disposed
d.logExtensionHostMessage @ extensionHost.ts:285
2extensionHost.ts:285[Extension Host] TextEditor disposed
d.logExtensionHostMessage @ extensionHost.ts:285
shell.ts:474Cannot read property 'document' of undefined: TypeError: Cannot read property 'document' of undefined
    at TagManager.isEnabled (/Users/rainer/.vscode/extensions/formulahendry.auto-rename-tag-0.0.11/out/src/tagManager.js:52:56)
    at TagManager.updatePairedTag (/Users/rainer/.vscode/extensions/formulahendry.auto-rename-tag-0.0.11/out/src/tagManager.js:63:19)
    at vscode.workspace.onDidChangeTextDocument.event (/Users/rainer/.vscode/extensions/formulahendry.auto-rename-tag-0.0.11/out/src/tagManager.js:13:18)
    at e.invoke (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:30930)
    at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:34737)
    at t.$acceptModelChanged (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:298227)
    at t.e.handle (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:266430)
    at s (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:154933)
    at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:155610)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
e.onUnexpectedError @ shell.ts:474
2extensionHost.ts:285[Extension Host] TextEditor is closed/disposed
d.logExtensionHostMessage @ extensionHost.ts:285
4extensionHost.ts:285[Extension Host] TextEditor disposed
d.logExtensionHostMessage @ extensionHost.ts:285
shell.ts:474Cannot read property 'document' of undefined: TypeError: Cannot read property 'document' of undefined
    at TagManager.isEnabled (/Users/rainer/.vscode/extensions/formulahendry.auto-rename-tag-0.0.11/out/src/tagManager.js:52:56)
    at TagManager.updatePairedTag (/Users/rainer/.vscode/extensions/formulahendry.auto-rename-tag-0.0.11/out/src/tagManager.js:63:19)
    at vscode.workspace.onDidChangeTextDocument.event (/Users/rainer/.vscode/extensions/formulahendry.auto-rename-tag-0.0.11/out/src/tagManager.js:13:18)
    at e.invoke (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:30930)
    at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:34737)
    at t.$acceptModelChanged (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:298227)
    at t.e.handle (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:266430)
    at s (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:154933)
    at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:155610)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
e.onUnexpectedError @ shell.ts:474
messageService.ts:125command 'jupyter.startNotebook' not found

Actual behavior

jupyter doesn't start.
'command 'jupyter.startNotebook' not found'

Expected behavior

Jupyter starts.

Steps to reproduce:

  • CMD+Shift p
  • Every jupyter command

Jupyter notebook creates temporary kernel-*.json files in working directory

From @gandhis1 on November 10, 2016 2:54

Environment data

VS Code version: 18.0-Insider
Python Extension version: 0.5.1
Python Version: 3.5.2
OS and version: Windows 10

Actual behavior

Jupyter spits out a number of kernel.json files while contain code similar to the below. This crowds my main working directory with files I don't want to see. If you're using source control, this can become especially annoying.

{
  "iopub_port": 62703,
  "signature_scheme": "hmac-sha256",
  "stdin_port": 62704,
  "hb_port": 62706,
  "key": "81f6d215-18b4-48b1-b421-d1df7f142bbd",
  "ip": "127.0.0.1",
  "kernel_name": "",
  "transport": "tcp",
  "control_port": 62705,
  "shell_port": 62702
}

image

Expected behavior

Any files needed should be written to a temporary directory, or extension-specific directory, not the current working directory.

Steps to reproduce:

  • Start up VSCode, enter a Python project.
  • Select some text, run it in Jupyter notebook.

P.S. Another bug is that the pythonVSCode template for submitting a new issue has TWO sections for Actual behavior, instead of just one

Copied from original issue: DonJayamanne/pythonVSCode#506

Refactor messy code

๐Ÿ‘Ž to my self for writing poor code.
Started out as trial code, just to try to get things working and understanding more about the jupyter protocol, spent too much time on understanding it and never did clean up the darn mess.
Reminder to all about the state of my code.

I hang my head in shame :(

pretty print long json results.

How can the results fit to the window? See screenshot.

Environment data

VS Code version:
Version 1.10.2
Jupyter Extension version:

latest

OS and version:
osx 10.12.4

Actual behavior

long json strings are flattened to one line and must be horizontal scrolled.

screen shot 2017-03-16 at 11 40 05 am

Expected behavior

fit the size of the window, scroll vertically if necessary

Steps to reproduce:

print out any large json object

Rendering issue with themes without white background

Environment data

VS Code version: 1.12.2
Jupyter Extension version: 1.1.3
OS and version: Windows 10 64 bit (enterprise)

Actual behavior

When a theme has a dark background, plots are rendered with whatever the plot style is set to, but with an extra rectangle of white background. In this screenshot ive deliberately themed matplotlib to have a dark background to show the behaviour, but if you leave the defaults you get a plot, with an extra wide white background.

screenshot 1

Expected behavior

Just rendering the plots only, with no extra white background

Steps to reproduce:

Run the small code sample here with a vscode theme that has a dark background:
`from matplotlib import pyplot as plt
import numpy as np
from jupyterthemes import jtplot
jtplot.style('onedork')

x = np.linspace(-np.pi, np.pi)
plt.plot(x, np.sin(x), label='sin(x)')
plt.plot(x, np.cos(x), label='cos(x)')`

The jupyter theme bit can be taken out, i just use that to quickly get a plot with a different background colour

Feature Request: Auto append "#%%" to the end of doc

Environment data

VS Code version: 1.11.2
Jupyter Extension version: 1.1.2
OS and version: Windows 10 Professional x64

My native language is not English, therefore to prevent misunderstanding, I leave no further message here, only my advice, sorry.

Advice - Continuous use of python console

For continuous use of python console, we can first initialize terminal with python.exe then execute the file using 'exec' command. Therefore, we can perform further operations on the results of the previously executed file.

const command = '${currentPythonPath}${launchArgsString}';
if (utils_1.IS_WINDOWS) {
const commandWin = command.replace(/\\/g, "/");
if (IS_POWERSHELL) {
terminal.sendText(& ${commandWin});
}
else {
terminal.sendText(commandWin);
}
const code = exec(open('${filePath}', 'rb').read());
terminal.sendText(code.replace(/\\/g, "/"), true);
}

Cannot run Jupyter cell since pythonVSCode update

Environment data

VS Code version: 1.10.2
Jupyter Extension version: 1.0.0
OS and version: macOS Sierra 10.12.3

Logs

Output from Jupyter output panel

Starting Jupyter Notebook
jupyter notebook --no-browser --port=8888 --NotebookApp.allow_origin="*"
[I 21:11:41.645 NotebookApp] [nb_conda_kernels] enabled, 2 kernels found
[I 21:11:42.633 NotebookApp] โœ“ nbpresent HTML export ENABLED
[W 21:11:42.633 NotebookApp] โœ— nbpresent PDF export DISABLED: No module named nbbrowserpdf.exporters.pdf
[I 21:11:42.640 NotebookApp] [nb_conda] enabled
[I 21:11:42.753 NotebookApp] [nb_anacondacloud] enabled
[I 21:11:42.763 NotebookApp] Serving notebooks from local directory: /Users/robmurtagh/projects_scripts/data-preprocessor-adform
[I 21:11:42.763 NotebookApp] 0 active kernels 
[I 21:11:42.763 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 21:11:42.763 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 21:11:43.422 NotebookApp] 404 GET /%20/api/kernelspecs?1489093903372 (127.0.0.1) 42.94ms referer=None
[W 21:11:50.358 NotebookApp] 404 GET /%20/api/kernelspecs?1489093910351 (127.0.0.1) 1.95ms referer=None

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

mainThreadExtensionService.ts:116 [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.runSelectionLine` appears multiple times in the `commands` section.
mainThreadExtensionService.ts:116 [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.execCurrentCell` appears multiple times in the `commands` section.
mainThreadExtensionService.ts:116 [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.execCurrentCellAndAdvance` appears multiple times in the `commands` section.
mainThreadExtensionService.ts:116 [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.gotToPreviousCell` appears multiple times in the `commands` section.
mainThreadExtensionService.ts:116 [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.gotToNextCell` appears multiple times in the `commands` section.
mime.ts:59 Overwriting extension <<.jsx>> to now point to mime <<text/x-jsx>>
extensionHost.ts:282 [Extension Host] [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.runSelectionLine` appears multiple times in the `commands` section.
extensionHost.ts:282 [Extension Host] [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.execCurrentCell` appears multiple times in the `commands` section.
extensionHost.ts:282 [Extension Host] [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.execCurrentCellAndAdvance` appears multiple times in the `commands` section.
extensionHost.ts:282 [Extension Host] [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.gotToPreviousCell` appears multiple times in the `commands` section.
extensionHost.ts:282 [Extension Host] [/Users/robmurtagh/.vscode/extensions/donjayamanne.python-0.6.0]: Command `jupyter.gotToNextCell` appears multiple times in the `commands` section.
messageService.ts:126 Notebook not selected/startede.doShow @ messageService.ts:126
nativeKeymap.ts:320 'KeyboardEvent.keyIdentifier' is deprecated and will be removed in M54, around October 2016. See https://www.chromestatus.com/features/5316065118650368 for more details.
2messageService.ts:126 <!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">

    <title>Jupyter Notebook</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c" type="text/css" />
    <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    

    <link rel="stylesheet" href="/static/style/style.min.css?v=f6c09475baf6beabd41f8fe518601204" type="text/css"/>
    
<style type="text/css">
/* disable initial hide */
div#header, div#site {
    display: block;
}
</style>

    <link rel="stylesheet" href="/custom/custom.css" type="text/css" />
    <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script>
    <script src="/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce" type="text/javascript" charset="utf-8"></script>
    <script>
      require.config({
          
          urlArgs: "v=20170309211141",
          
          baseUrl: '/static/',
          paths: {
            'auth/js/main': 'auth/js/main.min',
            custom : '/custom',
            nbextensions : '/nbextensions',
            kernelspecs : '/kernelspecs',
            underscore : 'components/underscore/underscore-min',
            backbone : 'components/backbone/backbone-min',
            jquery: 'components/jquery/jquery.min',
            bootstrap: 'components/bootstrap/js/bootstrap.min',
            bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
            'jquery-ui': 'components/jquery-ui/ui/minified/jquery-ui.min',
            moment: 'components/moment/moment',
            codemirror: 'components/codemirror',
            termjs: 'components/term.js/src/term',
            typeahead: 'components/jquery-typeahead/dist/jquery.typeahead'
          },
	  map: { // for backward compatibility
	    "*": {
		"jqueryui": "jquery-ui",
	    }
	  },
          shim: {
            typeahead: {
              deps: ["jquery"],
              exports: "typeahead"
            },
            underscore: {
              exports: '_'
            },
            backbone: {
              deps: ["underscore", "jquery"],
              exports: "Backbone"
            },
            bootstrap: {
              deps: ["jquery"],
              exports: "bootstrap"
            },
            bootstraptour: {
              deps: ["bootstrap"],
              exports: "Tour"
            },
            "jquery-ui": {
              deps: ["jquery"],
              exports: "$"
            }
          },
          waitSeconds: 30,
      });

      require.config({
          map: {
              '*':{
                'contents': 'services/contents',
              }
          }
      });

      define("bootstrap", function () {
          return window.$;
      });

      define("jquery", function () {
          return window.$;
      });

      define("jqueryui", function () {
          return window.$;
      });

      define("jquery-ui", function () {
          return window.$;
      });
      // error-catching custom.js shim.
      define("custom", function (require, exports, module) {
          try {
              var custom = require('custom/custom');
              console.debug('loaded custom.js');
              return custom;
          } catch (e) {
              console.error("error loading custom.js", e);
              return {};
          }
      })
    </script>

    
    

</head>

<body class="" >

<noscript>
    <div id='noscript'>
      Jupyter Notebook requires JavaScript.<br>
      Please enable it to proceed.
  </div>
</noscript>

<div id="header">
  <div id="header-container" class="container">
  <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="/tree" title='dashboard'><img src='/static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397' alt='Jupyter Notebook'/></a></div>

  
  
  


  

  
  
  </div>
  <div class="header-bar"></div>

  
  
</div>

<div id="site">


<div class="error">
    
    <h1>404 : Not Found</h1>
    
    
<p>You are requesting a page that does not exist!</p>

</header>


</div>







</body>

</html>

Actual behavior

Cannot run a Jupyter cell in python since pythonVSCode update.

Expected behavior

Run a Jupyter cell. It used to work fine when vscodeJupyter was part of pythonVSCode, but since I updated my python plugin, and got the deprecation notice, it's broken.

Jupyter does now show results in VSCode

From @RO-mix on January 31, 2017 1:58

Environment data

VS Code version: 1.8.1
Python Extension version: 0.5.6
Python Version: 3.5
OS and version: win 8.1 64bit

Actual behavior

Jupyter does now show results in VSCode

Expected behavior

Results shown in Results window

Steps to reproduce:

Settings

Your launch.json (if dealing with debugger issues):

{
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "Python",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config.python.pythonPath}",
            "program": "${file}",
            "cwd": "${workspaceRoot}",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },
        {
            "name": "PySpark",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "osx": {
                "pythonPath": "${env.SPARK_HOME}/bin/spark-submit"
            },
            "windows": {
                "pythonPath": "${env.SPARK_HOME}/bin/spark-submit.cmd"
            },
            "linux": {
                "pythonPath": "${env.SPARK_HOME}/bin/spark-submit"
            },
            "program": "${file}",
            "cwd": "${workspaceRoot}",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },
        {
            "name": "Python Module",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config.python.pythonPath}",
            "module": "module.name",
            "program": "",
            "cwd": "${workspaceRoot}",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },
        {
            "name": "Integrated Terminal/Console",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config.python.pythonPath}",
            "program": "${file}",
            "cwd": "null",
            "console": "integratedTerminal",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit"
            ]
        },
        {
            "name": "External Terminal/Console",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config.python.pythonPath}",
            "program": "${file}",
            "cwd": "null",
            "console": "externalTerminal",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit"
            ]
        },
        {
            "name": "Django",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config.python.pythonPath}",
            "program": "${workspaceRoot}/manage.py",
            "cwd": "${workspaceRoot}",
            "args": [
                "runserver",
                "--noreload"
            ],
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput",
                "DjangoDebugging"
            ]
        },
        {
            "name": "Flask",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "pythonPath": "${config.python.pythonPath}",
            "program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter",
            "cwd": "${workspaceRoot}",
            "env": {
                "FLASK_APP": "${workspaceRoot}/quickstart/app.py"
            },
            "args": [
                "run",
                "--no-debugger",
                "--no-reload"
            ],
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },
        {
            "name": "Flask (old)",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "pythonPath": "${config.python.pythonPath}",
            "program": "${workspaceRoot}/run.py",
            "cwd": "${workspaceRoot}",
            "args": [],
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },
        {
            "name": "Watson",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config.python.pythonPath}",
            "program": "${workspaceRoot}/console.py",
            "cwd": "${workspaceRoot}",
            "args": [
                "dev",
                "runserver",
                "--noreload=True"
            ],
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },
        {
            "name": "Attach (Remote Debug)",
            "type": "python",
            "request": "attach",
            "localRoot": "${workspaceRoot}",
            "remoteRoot": "${workspaceRoot}",
            "port": 3000,
            "secret": "my_secret",
            "host": "localhost"
        }
    ]
}

Your settings.json:

{
    "window.zoomLevel": 1,
    "python.jediPath": "c:\\Program Files\\Anaconda3\\Lib\\site-packages\\jedi",
    "python.workspaceSymbols.ctagsPath": "c:\\Program Files\\ctags58\\ctags.exe",
        // whitelist numpy to remove lint errors
    "python.linting.pylintArgs": [
        "--extension-pkg-whitelist=numpy"
    ]
}

Logs

Output from Python output panel

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

Copied from original issue: DonJayamanne/pythonVSCode#685

Problem starting notebook and running cell

I've been trying on and off for months to start using Code with Jupyter plugin. Really hoping someone can help. I'm not completely sure what the problem is - though I know I can't run a cell. It seems like there is no connection to the Jupyter Kernel.

Environment data

VS Code version: 1.10.2
Jupyter Extension version: 1.0.0
OS and version: Sierra 10.12.3

Logs

Output from Jupyter Notebook log:

Starting Jupyter Notebook
jupyter notebook --no-browser --port=8888 --NotebookApp.allow_origin="*"
[I 16:22:02.075 NotebookApp] [nb_conda_kernels] enabled, 6 kernels found
[W 16:22:02.298 NotebookApp] Error loading server extension jupyter_nbextensions_configurator
    Traceback (most recent call last):
      File "/Users/mchana/anaconda/lib/python3.5/site-packages/notebook/notebookapp.py", line 1046, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/Users/mchana/anaconda/lib/python3.5/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 986, in _gcd_import
      File "<frozen importlib._bootstrap>", line 969, in _find_and_load
      File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
    ImportError: No module named 'jupyter_nbextensions_configurator'
[I 16:22:02.302 NotebookApp] [nb_conda] enabled
[I 16:22:02.340 NotebookApp] [nb_anacondacloud] enabled
[I 16:22:02.376 NotebookApp] โœ“ nbpresent HTML export ENABLED
[W 16:22:02.377 NotebookApp] โœ— nbpresent PDF export DISABLED: No module named 'nbbrowserpdf'
[I 16:22:02.382 NotebookApp] Serving notebooks from local directory: /Users/mchana/.vscode/extensions/donjayamanne.jupyter-1.0.0/out/src/common
[I 16:22:02.382 NotebookApp] 0 active kernels 
[I 16:22:02.382 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 16:22:02.382 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 16:22:06.064 NotebookApp] 404 GET /%20/api/kernelspecs?1490397726032 (127.0.0.1) 29.25ms referer=None
[W 16:39:54.000 NotebookApp] 404 GET /%20/api/kernelspecs?1490398793989 (127.0.0.1) 1.38ms referer=None
[W 16:40:10.774 NotebookApp] 404 GET /%20/api/kernelspecs?1490398810769 (127.0.0.1) 1.83ms referer=None

Output from Jupyter output panel

, (Error: connect ECONNREFUSED 127.0.0.1:8888
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14))
, (<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">

    <title>Jupyter Notebook</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c" type="text/css" />
    <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    

    <link rel="stylesheet" href="/static/style/style.min.css?v=f6c09475baf6beabd41f8fe518601204" type="text/css"/>
    
<style type="text/css">
/* disable initial hide */
div#header, div#site {
    display: block;
}
</style>

    <link rel="stylesheet" href="/custom/custom.css" type="text/css" />
    <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script>
    <script src="/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce" type="text/javascript" charset="utf-8"></script>
    <script>
      require.config({
          
          urlArgs: "v=20170324162202",
          
          baseUrl: '/static/',
          paths: {
            'auth/js/main': 'auth/js/main.min',
            custom : '/custom',
            nbextensions : '/nbextensions',
            kernelspecs : '/kernelspecs',
            underscore : 'components/underscore/underscore-min',
            backbone : 'components/backbone/backbone-min',
            jquery: 'components/jquery/jquery.min',
            bootstrap: 'components/bootstrap/js/bootstrap.min',
            bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
            'jquery-ui': 'components/jquery-ui/ui/minified/jquery-ui.min',
            moment: 'components/moment/moment',
            codemirror: 'components/codemirror',
            termjs: 'components/term.js/src/term',
            typeahead: 'components/jquery-typeahead/dist/jquery.typeahead'
          },
	  map: { // for backward compatibility
	    "*": {
		"jqueryui": "jquery-ui",
	    }
	  },
          shim: {
            typeahead: {
              deps: ["jquery"],
              exports: "typeahead"
            },
            underscore: {
              exports: '_'
            },
            backbone: {
              deps: ["underscore", "jquery"],
              exports: "Backbone"
            },
            bootstrap: {
              deps: ["jquery"],
              exports: "bootstrap"
            },
            bootstraptour: {
              deps: ["bootstrap"],
              exports: "Tour"
            },
            "jquery-ui": {
              deps: ["jquery"],
              exports: "$"
            }
          },
          waitSeconds: 30,
      });

      require.config({
          map: {
              '*':{
                'contents': 'services/contents',
              }
          }
      });

      define("bootstrap", function () {
          return window.$;
      });

      define("jquery", function () {
          return window.$;
      });

      define("jqueryui", function () {
          return window.$;
      });

      define("jquery-ui", function () {
          return window.$;
      });
      // error-catching custom.js shim.
      define("custom", function (require, exports, module) {
          try {
              var custom = require('custom/custom');
              console.debug('loaded custom.js');
              return custom;
          } catch (e) {
              console.error("error loading custom.js", e);
              return {};
          }
      })
    </script>

    
    

</head>

<body class="" >

<noscript>
    <div id='noscript'>
      Jupyter Notebook requires JavaScript.<br>
      Please enable it to proceed.
  </div>
</noscript>

<div id="header">
  <div id="header-container" class="container">
  <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="/tree" title='dashboard'><img src='/static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397' alt='Jupyter Notebook'/></a></div>

  
  
  


  

  
  
  </div>
  <div class="header-bar"></div>

  
  
</div>

<div id="site">


<div class="error">
    
    <h1>404 : Not Found</h1>
    
    
<p>You are requesting a page that does not exist!</p>

</header>


</div>







</body>

</html>)
, (Error: connect ECONNREFUSED 127.0.0.1:8888
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14))
, (<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">

    <title>Jupyter Notebook</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c" type="text/css" />
    <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    

    <link rel="stylesheet" href="/static/style/style.min.css?v=f6c09475baf6beabd41f8fe518601204" type="text/css"/>
    
<style type="text/css">
/* disable initial hide */
div#header, div#site {
    display: block;
}
</style>

    <link rel="stylesheet" href="/custom/custom.css" type="text/css" />
    <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script>
    <script src="/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce" type="text/javascript" charset="utf-8"></script>
    <script>
      require.config({
          
          urlArgs: "v=20170324162202",
          
          baseUrl: '/static/',
          paths: {
            'auth/js/main': 'auth/js/main.min',
            custom : '/custom',
            nbextensions : '/nbextensions',
            kernelspecs : '/kernelspecs',
            underscore : 'components/underscore/underscore-min',
            backbone : 'components/backbone/backbone-min',
            jquery: 'components/jquery/jquery.min',
            bootstrap: 'components/bootstrap/js/bootstrap.min',
            bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
            'jquery-ui': 'components/jquery-ui/ui/minified/jquery-ui.min',
            moment: 'components/moment/moment',
            codemirror: 'components/codemirror',
            termjs: 'components/term.js/src/term',
            typeahead: 'components/jquery-typeahead/dist/jquery.typeahead'
          },
	  map: { // for backward compatibility
	    "*": {
		"jqueryui": "jquery-ui",
	    }
	  },
          shim: {
            typeahead: {
              deps: ["jquery"],
              exports: "typeahead"
            },
            underscore: {
              exports: '_'
            },
            backbone: {
              deps: ["underscore", "jquery"],
              exports: "Backbone"
            },
            bootstrap: {
              deps: ["jquery"],
              exports: "bootstrap"
            },
            bootstraptour: {
              deps: ["bootstrap"],
              exports: "Tour"
            },
            "jquery-ui": {
              deps: ["jquery"],
              exports: "$"
            }
          },
          waitSeconds: 30,
      });

      require.config({
          map: {
              '*':{
                'contents': 'services/contents',
              }
          }
      });

      define("bootstrap", function () {
          return window.$;
      });

      define("jquery", function () {
          return window.$;
      });

      define("jqueryui", function () {
          return window.$;
      });

      define("jquery-ui", function () {
          return window.$;
      });
      // error-catching custom.js shim.
      define("custom", function (require, exports, module) {
          try {
              var custom = require('custom/custom');
              console.debug('loaded custom.js');
              return custom;
          } catch (e) {
              console.error("error loading custom.js", e);
              return {};
          }
      })
    </script>

    
    

</head>

<body class="" >

<noscript>
    <div id='noscript'>
      Jupyter Notebook requires JavaScript.<br>
      Please enable it to proceed.
  </div>
</noscript>

<div id="header">
  <div id="header-container" class="container">
  <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="/tree" title='dashboard'><img src='/static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397' alt='Jupyter Notebook'/></a></div>

  
  
  


  

  
  
  </div>
  <div class="header-bar"></div>

  
  
</div>

<div id="site">


<div class="error">
    
    <h1>404 : Not Found</h1>
    
    
<p>You are requesting a page that does not exist!</p>

</header>


</div>







</body>

</html>)

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

screen shot 2017-03-24 at 4 27 22 pm

Actual behavior

Notebook and or the Jupyter/iPython kernel doesn't start. When loading any .py and trying to run cell, '' as an error message is shown. I've tried to point Code to the appropriate kernel in setting, ex: "python.jupyter.defaultKernel": "Python 3". I've tried opening the file using root permissions and same problems.

Expected behavior

Based on what I've seen in the documentation, I'd expect the notebook to be loaded upon opening the file.

Steps to reproduce:

Open file -> try to run cell.

support for ipython/jupyter widgets

From @rythmkraze on October 20, 2016 14:12

Hi Don

Does this support ipywidgets? Currently I get the following error trying to run widgets.interact()

Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension"

Although widgetsnbextension is already enabled.

jupyter nbextension enable --py --sys-prefix widgetsnbextension
Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK

By the way, thank you for this awesome extension :)

--Rajiv

Copied from original issue: DonJayamanne/pythonVSCode#410

Request for future releases

From @emrahyigit on January 24, 2017 9:9

Hello,

First of all thank you for this great extension It helps us a lot. I just wonder how close we are to the following screen, I already changed my shell to python.exe and made some changes on the code for continous interaction on that console. But it would be great if we can integrate jupyter console to vscode.

Thank you for advance.

python_vscode

Copied from original issue: DonJayamanne/pythonVSCode#670

Jupiter output window won't scroll manually all the way down when many figures present in output

Environment data

VS Code version: 1.11.1
Jupyter Extension version: 1.1.1
OS and version: macOS Sierra

Logs

Output from Jupyter output panel

<img width="1440" alt="screenshot" src="https://cloud.githubusercontent.com/assets/12850153/25013884/193f5d7c-207e-11e7-994f-31ea435cf26c.png">

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

Actual behavior

Jupiter output window won't scroll manually all the way down when many figures present in output. In the screenshot I have scrolled the window as far down as possible and half of the figure and the x-axis stay hidden.

Expected behavior

I want to see x-axis labels.

Steps to reproduce:

In the screenshot the most important part of the code (producing the figures) to reproduce.

Permission denied error when attempting to start a Jupyter kernel

From @Ramlimab on November 4, 2016 3:26

Dear Don,

Am just starting to use VSCode for my python programming needs.
Unfortunately, I encounter this error when I try to run a sample Jupyter code.

Is there some permissions I need to allow to VSCode to utilize Jupyter that I might have missed?
Thanks in advance!

Operating System: Windows 7
VS Code: 1.7.1
Python Extension: 0.5.0
Python Distribution: Anaconda 64-bit

image

Copied from original issue: DonJayamanne/pythonVSCode#483

Indentation of print statements are sometimes not preserved

Environment data

VS Code version: 1.12.1
Jupyter Extension version: 1.1.3
OS and version: macOS 10.12.4

Actual behavior

When running a program/cell in which I print out strings with indentation at the beginning, the first print-out and every print-out which happens after a little "stand-by-time" are not indented.

Expected behavior

Every print statement that includes indentation in its string should be indented in the "Results" output as well.

Steps to reproduce:

Use the following code as a cell and run it

#%%
import time
for i in range(10):
    print("    Hello World!") # can be any string with indentation at the beginning
    time.sleep(1) # can be any computation that takes some time

Retina matplotlib (IPython)

From @yay on March 3, 2017 23:30

Environment data

VS Code version: 1.10.1
Python Extension version:
Python Version: 3.6
OS and version: macOS 10.12.3

Note: this issue should be viewed on a retina display to see the difference.

Actual behavior

matplotlib images are blurry on hiDPI ("retina") displays:

screen shot 2017-03-04 at 00 07 33

The following startup options in package.json are used by the plugin by default:

screen shot 2017-03-04 at 00 07 42

Expected behavior

The following startup options are expected (if the devicePixelRatio is 2):

screen shot 2017-03-04 at 00 10 13

However, this still doesn't solve the problem competely, because the image is now twice the size, but still blurry:

screen shot 2017-03-04 at 00 08 19

This is because it has to be scaled down by 50% (which is the usual practice when rendering Canvas images on retina displays), to have the size of the original image above and look crisp:

screen shot 2017-03-04 at 00 08 190

Notice how the fonts are visibly sharper. For this particular plot the difference is not very dramatic, but it will vary depending on the content of the plot, and can be much more obvious.

Copied from original issue: DonJayamanne/pythonVSCode#786

Wrong margins on results view when using zoom

From @gcusso on February 3, 2017 13:14

Environment data

VS Code version: 1.9.0
Python Extension version: 0.5.8
Python Version: 3.5.2
OS and version: Windows 10

Actual behavior

When you use a zoom level greater than the default one ('Ctrl+' or 'View/Zoom In') the margins in the results view are too big.

python_issue1

Expected behavior

python_issue2

Steps to reproduce

  • With this code:
#%%
from IPython.display import Image
Image('http://jakevdp.github.com/figures/xkcd_version.png')
  • Run cell
  • Zoom in (Top bar, View/Zoom in)

Copied from original issue: DonJayamanne/pythonVSCode#702

Run full script in Jupyter Notebook/IPython Console

From @thewaywewalk on March 10, 2017 15:21

Environment data

VS Code version: 1.10.2
Python Extension version: 0.6.0
Python Version: 3.6
OS and version: Windows 7 Pro

Actual behavior

Currently I can run a piece of selected code and get the output displayed in "Results".
If I want to run a whole script/file, I need to select the whole code, which ist not really convenient.

Desired behavior

Could you introduce a command/shortcut to run the entire file in the IPython console/Jupyter Notebook?

Thank you!

Copied from original issue: DonJayamanne/pythonVSCode#812

Error <!DOCTYPE HTML> when run cell (creating new notebook or using existed notebook)

I have a feeling this has something to do with path.

Environment data

VS Code version:
Jupyter Extension version:
OS and version: windows 10

Logs

Output from Jupyter output panel



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

(<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">

    <title>Jupyter Notebook</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c" type="text/css" />
    <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    

    <link rel="stylesheet" href="/static/style/style.min.css?v=f6c09475baf6beabd41f8fe518601204" type="text/css"/>
    
<style type="text/css">
/* disable initial hide */
div#header, div#site {
    display: block;
}
</style>

    <link rel="stylesheet" href="/custom/custom.css" type="text/css" />
    <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script>
    <script src="/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce" type="text/javascript" charset="utf-8"></script>
    <script>
      require.config({
          
          urlArgs: "v=20170411094459",
          
          baseUrl: '/static/',
          paths: {
            'auth/js/main': 'auth/js/main.min',
            custom : '/custom',
            nbextensions : '/nbextensions',
            kernelspecs : '/kernelspecs',
            underscore : 'components/underscore/underscore-min',
            backbone : 'components/backbone/backbone-min',
            jquery: 'components/jquery/jquery.min',
            bootstrap: 'components/bootstrap/js/bootstrap.min',
            bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
            'jquery-ui': 'components/jquery-ui/ui/minified/jquery-ui.min',
            moment: 'components/moment/moment',
            codemirror: 'components/codemirror',
            termjs: 'components/term.js/src/term',
            typeahead: 'components/jquery-typeahead/dist/jquery.typeahead'
          },
	  map: { // for backward compatibility
	    "*": {
		"jqueryui": "jquery-ui",
	    }
	  },
          shim: {
            typeahead: {
              deps: ["jquery"],
              exports: "typeahead"
            },
            underscore: {
              exports: '_'
            },
            backbone: {
              deps: ["underscore", "jquery"],
              exports: "Backbone"
            },
            bootstrap: {
              deps: ["jquery"],
              exports: "bootstrap"
            },
            bootstraptour: {
              deps: ["bootstrap"],
              exports: "Tour"
            },
            "jquery-ui": {
              deps: ["jquery"],
              exports: "$"
            }
          },
          waitSeconds: 30,
      });

      require.config({
          map: {
              '*':{
                'contents': 'services/contents',
              }
          }
      });

      define("bootstrap", function () {
          return window.$;
      });

      define("jquery", function () {
          return window.$;
      });

      define("jqueryui", function () {
          return window.$;
      });

      define("jquery-ui", function () {
          return window.$;
      });
      // error-catching custom.js shim.
      define("custom", function (require, exports, module) {
          try {
              var custom = require('custom/custom');
              console.debug('loaded custom.js');
              return custom;
          } catch (e) {
              console.error("error loading custom.js", e);
              return {};
          }
      })
    </script>

    
    

</head>

<body class="" >

<noscript>
    <div id='noscript'>
      Jupyter Notebook requires JavaScript.<br>
      Please enable it to proceed.
  </div>
</noscript>

<div id="header">
  <div id="header-container" class="container">
  <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="/tree" title='dashboard'><img src='/static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397' alt='Jupyter Notebook'/></a></div>

  
  
  


  

  
  
  </div>
  <div class="header-bar"></div>

  
  
</div>

<div id="site">


<div class="error">
    
    <h1>404 : Not Found</h1>
    
    
<p>You are requesting a page that does not exist!</p>

</header>


</div>







</body>

</html>)

Actual behavior

Expected behavior

Steps to reproduce:

Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command

Environment data

VS Code version: Version 1.10.2 (1.10.2)
Jupyter Extension version: 1.0.0
OS and version: macOS Sierra 10.12.3

Logs

Output from Jupyter output panel

Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command
Notebook not selected/started

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

workbench.main.js:142 spawn jupyter ENOENT: Error: spawn jupyter ENOENT
    at exports._errnoException (util.js:1026:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)e.onUnexpectedError @ workbench.main.js:142
workbench.main.js:103 Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' commande.doShow @ workbench.main.js:103
workbench.main.js:136 [Extension Host] rejected promise not handled within 1 second
workbench.main.js:142 Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' commande.onUnexpectedError @ workbench.main.js:142

Actual behavior

Tried to run this code and clicked on "Run Cell"
#%%
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np

x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show()

Says to "Select Notebook". Tried to Select Notebook, but was unable to. So I tried to Start a New Notebook, but still got an error.

Expected behavior

To run the sample code.

Steps to reproduce:

  • I was using a virtualenv, so I opened VS Code from the terminal as I always do with the virtualenv where Jupyter notebook is installed.
  • I created a test.py file, pasted the sample code. Clicked "Run Cell". Got the above results.
  • Then I realized that I didn't paste the configuration settings (as I found them on the docs of the Python VS Code extension that you also made), so I did. But I still get errors. The above errors are what I get after I pasted the configs.
  • Configs I put on settings.json:
    "python.jupyter.defaultKernel": "",
    "python.jupyter.startupCode": [
    "%matplotlib inline"
    ],
    "python.jupyter.appendResults": true,
  • Then I also tried opening the virtualenv from VS Code's inbuilt command line, just to see if it would help. Still same error.

Cannot read property 'substring' of undefined

From @lucidyan on December 15, 2016 16:38

Environment data

VS Code version:

  • Version 1.8.0
  • Commit 38746938a4ab94f2f57d9e1309c51fd6fb37553d
  • Date 2016-12-13T18:03:00.506Z
  • Shell 1.4.6
  • Renderer 53.0.2785.143
  • Node 6.5.0

Python Extension version: 0.5.5
Python Version: 3.5.2
OS and version: Ubuntu 16.10 | Linux 4.8.0-30-generic

Actual behavior

When I try to format wrong one line like

import pandas as pd

without new line in the end, with Ctrl+Shift+I, I get

Cannot read property 'substring' of undefined

But when I add new line to the end of file or write string by pep8, it's working fine.
It's reproduce with yapf, autopep8 crashes without end of file line even with pep8-writed first string.

Expected behavior

Autoformatting

Copied from original issue: DonJayamanne/pythonVSCode#583

Failed to Detect Jupyter Notebook created in non-default startupFolder

From @edward-agarwala on May 4, 2017 20:59

Environment data

VS Code version: 1.12.0
Python Extension version: Python 0.6.4 and Jupyter 1.1.2
Python Version: 3.6
OS and version: Mac OS 10.11.6

Actual behavior

Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command
When running a cell and choosing to start up a new notebook given default startup folder, jupyter.notebook.startupFolder, has changed.

Expected behavior

Correctly detect the notebook created.

Steps to reproduce:

  • Set, "jupyter.notebook.startupFolder": "${workspaceRoot}/folder1/folder2"
  • Try to run a python cell
  • Choose start a new notebook

Workaround

The jupyter notebook is successfully created in the correct folder. After getting the error, choose to connect to a local notebook. The cells then run correctly.

Settings

Your launch.json (if dealing with debugger issues):

Your settings.json:

User
{    
    "python.jupyter.defaultKernel": "localhost:8888",
}
Workspace
{
    "jupyter.notebook.startupFolder": "${workspaceRoot}/folder1/folder2"
}

Logs

Output from Python output panel

Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command

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

Copied from original issue: DonJayamanne/pythonVSCode#934

Requirements for Extension

@davidanthoff
The extension utilizes the Jupyter javascript (client) services.
https://github.com/jupyterlab/services

As you can see from the link, the requirements for this are:

  1. Node (satisfied by VS Code)
  2. Python (satisfied by installation of Jupyter)

The second item is what I need to check with you.
To my knowledge Jupyter can be installed using the Anaconda distribution (http://jupyter.readthedocs.io/en/latest/install.html).

Please confirm this works with Julia as well.

LaTeX do not rendered

From @Lishen1 on December 15, 2016 19:9

Environment data

VS Code version: 1.8.0
Python Extension version: 0.5.5
Python Version: Python 3.5.2 :: Anaconda 4.2.0 (64-bit)
OS and version: Win 7 x64
Your launch.json (if dealing with debugger issues):

Your settings.json:

Logs

Output from Python output panel

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

Actual behavior

from IPython.display import Latex
Latex('''The mass-energy equivalence is described by the famous equation

$$E=mc^2$$

discovered in 1905 by Albert Einstein.
In natural units ($c$ = 1), the formula expresses the identity

\\begin{equation}
E=m
\\end{equation}''')

print same text to console.

if i use:

import sympy as sym
from sympy import init_printing
init_printing(forecolor='White') 
x = sym.symbols('x')
from IPython.display import display
display(integ)

render LaTeX normal, but always on white background.

Expected behavior

print rendered LaTeX

Steps to reproduce:

Copied from original issue: DonJayamanne/pythonVSCode#584

Jupyter Command: strk, Id: 1, Python Trace: Traceback (most recent call last):

From @jackwluo on December 18, 2016 4:31

Environment data

VS Code version: 1.8.0
Python Extension version: Jupyter 1.0.0
Python Version: 2.7
OS and version: macOS 10.12 Sierra

----------Generating Tags----------
ctags --options=/Users/Admin/.vscode/extensions/donjayamanne.python-0.5.5/resources/ctagOptions --languages=Python -o /Users/Admin/.vscode/extensions/donjayamanne.python-0.5.5/out/client/common/tags .
/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- -
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
Error Message: Command: strk, Id: 0, Python Trace: Traceback (most recent call last):
File "/Users/Admin/.vscode/extensions/donjayamanne.python-0.5.5/pythonFiles/PythonTools/ipythonServer.py", line 283, in start_processing
cmd(self, id)
File "/Users/Admin/.vscode/extensions/donjayamanne.python-0.5.5/pythonFiles/PythonTools/ipythonServer.py", line 370, in _cmd_strk
kernelUUID = multiKernelManager.start_kernel(kernel_name=kernelName)
File "/usr/local/lib/python2.7/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "/usr/local/lib/python2.7/site-packages/jupyter_client/manager.py", line 224, in start_kernel
self.write_connection_file()
File "/usr/local/lib/python2.7/site-packages/jupyter_client/connect.py", line 407, in write_connection_file
kernel_name=self.kernel_name
File "/usr/local/lib/python2.7/site-packages/jupyter_client/connect.py", line 135, in write_connection_file
with open(fname, 'w') as f:
IOError: [Errno 13] Permission denied: u'kernel-8af27731-2072-45cf-9e6b-9f7090b621bd.json'

Copied from original issue: DonJayamanne/pythonVSCode#593

New Jupyter extension cannot run current Python cell code

Environment data

VS Code version: 1.10.2
Jupyter Extension version: 1.0
OS and version: Windows 10

Logs

Output from Jupyter output panel
not start

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

404 : Not Found

You are requesting a page that does not exist!

Actual behavior

Start a new notebook and get html not found
(my home folder of Jupyter is NOT default in My Document folder)

Expected behavior

Run cell like version 0.59

Steps to reproduce:

  • Update to Python version 0.60
  • Run the current python file with "# %%" cell characters

Jupyter/IPython REPL enhancement

From @gandhis1 on October 20, 2016 1:19

Currently, the Jupyter implementation provides results in a separate pane, but with limited visual cues on the relation of code and outputs.

For instance, Atom's Hydrogen - the user is running a specific code block at a time, and the results show up right below the code. If given code does not produce anything, nothing shows up, but the user is aware that it ran. Right now, if I run "Run Selection/Line" on code that does nothing, e.g. imports, there is no visual feedback to see that it ran.

image

Another alternative/example would be the PyQT IPython REPL, which has a different layout, but still the same core idea:

image

I think one of the big use cases for Jupyter is going to be interactive coding, which isn't nearly as seamless right now as it could be.

Copied from original issue: DonJayamanne/pythonVSCode#401

Please make it possible to enlarge images in Jupyter output window

From @Agnpalm on January 18, 2017 15:25

VS Code version: 1.8.1
Python Extension version: 0.5.6
Python Version: 3.6.0
OS and version: Windows 10 x64

When showing images in the Jupyter output window they're way too small. It might be ok for some plots, but I was working with images and edge detection, and a lot of the edges weren't visible due to the small output images and the pretty bad resampling.

There's several ways this could be implemented. Click and drag on the image to resize, add a resize handle to the image, open a full size image in a separate overlay when clicked, and so on.

Copied from original issue: DonJayamanne/pythonVSCode#655

Jupyter Preview Bugs?

From @Scoodood on November 5, 2016 2:14

Hi @DonJayamanne, are these bugs related to the extension or VSCODE itself?

My System Setup

OSX 10.10.5,
Code 1.7.1,
Python Plugin 0.50

My Python Installation (Python 2.7.12 and Python 3.5.2)

>> brew install python python3
>> sudo pip2 install numpy matplotlib, jupyter, pandas, scipy
>> sudo pip3 install numpy matplotlib, jupyter, pandas, scipy

From terminal I can launch Python / iPython version 2 and 3 as follows:

>> python     # launches Python 2.7.12
>> ipython    # launches iPython 3.5.2
>> python2    # launchesPython 2.7.12
>> ipython2   # launches iPython 2.7.12
>> python3    # launches iPython 3.5.2
>> ipython3   # launches iPython 3.5.2

Feedback is recorded in these videos

  1. The "python.jupyter.defaultKernel": "Python3" does not work
  2. The Jupyter output doesn't work nicely with a Dark Color Theme
  3. Most Jupyter output disappear after switching to different tab and then come back again
  4. Another font resize bug!! Try to increase your font size with 2 panels open side by side with Jupyter

    out1

    out2

Test Code

#%%
import sys
print(sys.version)
counter = 0
print(counter)


#%%
counter += 1
print(counter)


#%%
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show()


#%%
import matplotlib.pyplot as plt
import numpy as np
import mpld3
mpld3.enable_notebook()
fig, ax = plt.subplots(subplot_kw=dict(axisbg='#EEEEEE'))
ax.grid(color='white', linestyle='solid')
N = 50
scatter = ax.scatter(np.random.normal(size=N),
                     np.random.normal(size=N),
                     c=np.random.random(size=N),
                     s = 1000 * np.random.random(size=N),
                     alpha=0.3,
                     cmap=plt.cm.jet)
ax.set_title("D3 Scatter Plot", size=18);

Copied from original issue: DonJayamanne/pythonVSCode#488

Python Interactive - List Errors in Results View

From @drcrook1 on November 29, 2016 14:45

It would be good if an error occurred during execution of a cell that the error for that cell were presented in the results view. Makes a cleaner debugging experience.

Copied from original issue: DonJayamanne/pythonVSCode#558

feature request: support IPython console

From @mickeydonkey on November 3, 2016 2:6

Dear developer of pythonVSCode:

IMHO current IPython integration #303 is like a variation of jupyter notebook. While IPython console is a popular REPL mode which arms user with convenient magic commands.
To enter IPython console, one just types 'ipython' in terminal. It'll be great to see functionality like:

  1. simply "python: run selection in ipython console"
  2. running a code cell in the IPython console and display its output in parallel;

Thanks

Copied from original issue: DonJayamanne/pythonVSCode#480

Jupyter starts up with errors

From @gandhis1 on October 29, 2016 15:27

So typically when I start up VS Code, open a Python file, highlight some text, and press CTRL+Alt+Enter, the first time I do so, I get a number of error messages at the top of the screen. Instead of screenshotting those, I copied the log entries below. The strange thing to me is that if I wait and I continue to do nothing else but press CTRL+Alt+Enter, eventually the kernel does start up and the code runs.

If the kernel isn't available, ideally the extension should be telling me it is starting/restarting it, and show some kind of indication in the bottom status bar that it is starting up the kernel (or whatever it is doing).

Operating System: Windows 7
VS Code: 1.6.1
Python Extension: 0.5.0 (latest public)
Python Distribution: Anaconda 64-bit (latest)

capture342

Copied from original issue: DonJayamanne/pythonVSCode#476

Requires Javascript Issue

Environment data

VS Code version: latest as of 3/15/2017
Jupyter Extension version: latest as of 3/15/2017
OS and version: windows 10, latest as of 3/15/2017

Logs

Output from Jupyter output panel

, (<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">

    <title>Jupyter Notebook</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c" type="text/css" />
    <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    

    <link rel="stylesheet" href="/static/style/style.min.css?v=f6c09475baf6beabd41f8fe518601204" type="text/css"/>
    
<style type="text/css">
/* disable initial hide */
div#header, div#site {
    display: block;
}
</style>

    <link rel="stylesheet" href="/custom/custom.css" type="text/css" />
    <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script>
    <script src="/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce" type="text/javascript" charset="utf-8"></script>
    <script>
      require.config({
          
          urlArgs: "v=20170315110116",
          
          baseUrl: '/static/',
          paths: {
            'auth/js/main': 'auth/js/main.min',
            custom : '/custom',
            nbextensions : '/nbextensions',
            kernelspecs : '/kernelspecs',
            underscore : 'components/underscore/underscore-min',
            backbone : 'components/backbone/backbone-min',
            jquery: 'components/jquery/jquery.min',
            bootstrap: 'components/bootstrap/js/bootstrap.min',
            bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
            'jquery-ui': 'components/jquery-ui/ui/minified/jquery-ui.min',
            moment: 'components/moment/moment',
            codemirror: 'components/codemirror',
            termjs: 'components/term.js/src/term',
            typeahead: 'components/jquery-typeahead/dist/jquery.typeahead'
          },
	  map: { // for backward compatibility
	    "*": {
		"jqueryui": "jquery-ui",
	    }
	  },
          shim: {
            typeahead: {
              deps: ["jquery"],
              exports: "typeahead"
            },
            underscore: {
              exports: '_'
            },
            backbone: {
              deps: ["underscore", "jquery"],
              exports: "Backbone"
            },
            bootstrap: {
              deps: ["jquery"],
              exports: "bootstrap"
            },
            bootstraptour: {
              deps: ["bootstrap"],
              exports: "Tour"
            },
            "jquery-ui": {
              deps: ["jquery"],
              exports: "$"
            }
          },
          waitSeconds: 30,
      });

      require.config({
          map: {
              '*':{
                'contents': 'services/contents',
              }
          }
      });

      define("bootstrap", function () {
          return window.$;
      });

      define("jquery", function () {
          return window.$;
      });

      define("jqueryui", function () {
          return window.$;
      });

      define("jquery-ui", function () {
          return window.$;
      });
      // error-catching custom.js shim.
      define("custom", function (require, exports, module) {
          try {
              var custom = require('custom/custom');
              console.debug('loaded custom.js');
              return custom;
          } catch (e) {
              console.error("error loading custom.js", e);
              return {};
          }
      })
    </script>

    
    

</head>

<body class="" >

<noscript>
    <div id='noscript'>
      Jupyter Notebook requires JavaScript.<br>
      Please enable it to proceed.
  </div>
</noscript>

<div id="header">
  <div id="header-container" class="container">
  <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="/tree" title='dashboard'><img src='/static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397' alt='Jupyter Notebook'/></a></div>

  
  
  


  

  
  
  </div>
  <div class="header-bar"></div>

  
  
</div>

<div id="site">


<div class="error">
    
    <h1>404 : Not Found</h1>
    
    
<p>You are requesting a page that does not exist!</p>

</header>


</div>







</body>

</html>)
, (<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">

    <title>Jupyter Notebook</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=9b2c8d3489227115310662a343fce11c" type="text/css" />
    <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    

    <link rel="stylesheet" href="/static/style/style.min.css?v=f6c09475baf6beabd41f8fe518601204" type="text/css"/>
    
<style type="text/css">
/* disable initial hide */
div#header, div#site {
    display: block;
}
</style>

    <link rel="stylesheet" href="/custom/custom.css" type="text/css" />
    <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script>
    <script src="/static/components/requirejs/require.js?v=6da8be361b9ee26c5e721e76c6d4afce" type="text/javascript" charset="utf-8"></script>
    <script>
      require.config({
          
          urlArgs: "v=20170315110116",
          
          baseUrl: '/static/',
          paths: {
            'auth/js/main': 'auth/js/main.min',
            custom : '/custom',
            nbextensions : '/nbextensions',
            kernelspecs : '/kernelspecs',
            underscore : 'components/underscore/underscore-min',
            backbone : 'components/backbone/backbone-min',
            jquery: 'components/jquery/jquery.min',
            bootstrap: 'components/bootstrap/js/bootstrap.min',
            bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
            'jquery-ui': 'components/jquery-ui/ui/minified/jquery-ui.min',
            moment: 'components/moment/moment',
            codemirror: 'components/codemirror',
            termjs: 'components/term.js/src/term',
            typeahead: 'components/jquery-typeahead/dist/jquery.typeahead'
          },
	  map: { // for backward compatibility
	    "*": {
		"jqueryui": "jquery-ui",
	    }
	  },
          shim: {
            typeahead: {
              deps: ["jquery"],
              exports: "typeahead"
            },
            underscore: {
              exports: '_'
            },
            backbone: {
              deps: ["underscore", "jquery"],
              exports: "Backbone"
            },
            bootstrap: {
              deps: ["jquery"],
              exports: "bootstrap"
            },
            bootstraptour: {
              deps: ["bootstrap"],
              exports: "Tour"
            },
            "jquery-ui": {
              deps: ["jquery"],
              exports: "$"
            }
          },
          waitSeconds: 30,
      });

      require.config({
          map: {
              '*':{
                'contents': 'services/contents',
              }
          }
      });

      define("bootstrap", function () {
          return window.$;
      });

      define("jquery", function () {
          return window.$;
      });

      define("jqueryui", function () {
          return window.$;
      });

      define("jquery-ui", function () {
          return window.$;
      });
      // error-catching custom.js shim.
      define("custom", function (require, exports, module) {
          try {
              var custom = require('custom/custom');
              console.debug('loaded custom.js');
              return custom;
          } catch (e) {
              console.error("error loading custom.js", e);
              return {};
          }
      })
    </script>

    
    

</head>

<body class="" >

<noscript>
    <div id='noscript'>
      Jupyter Notebook requires JavaScript.<br>
      Please enable it to proceed.
  </div>
</noscript>

<div id="header">
  <div id="header-container" class="container">
  <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="/tree" title='dashboard'><img src='/static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397' alt='Jupyter Notebook'/></a></div>

  
  
  


  

  
  
  </div>
  <div class="header-bar"></div>

  
  
</div>

<div id="site">


<div class="error">
    
    <h1>404 : Not Found</h1>
    
    
<p>You are requesting a page that does not exist!</p>

</header>


</div>







</body>

</html>)

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

Same

Actual behavior

Errors

Expected behavior

Opens jupyter notebook on right pane for view.

Steps to reproduce:

Install latest vs code, then latest python, then jupyter extensions
#%%
import numpy

run the cell block.

Jupyter infinitely create "Python.exe" processes when working together with Python extension

Environment data

VS Code version:1.11.2
Jupyter Extension version:1.1.1
OS and version:Windows 10 Pro 10.0.15063
Anaconda version:4.3.1 (64-bit)
Python version:3.6.0
Jupyter version:4.2.1

Logs

Output from Jupyter output panel

no output

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

no output

Actual behavior

It infinitely creates "Python.exe" processes.

Expected behavior

Show the result plots in Jupyter output panel.

Steps to reproduce:

  • Install "Python" extension and "Jupyter" extension
  • Write the test python code, and click "Run cell", then booooom

Jupyter output limit to a parcel of the screen

From @Paul-Yuchao-Dong on March 4, 2017 7:59

Many thanks for your great contribution to python community. Now we have VS Code, a really fast editor for python coding as well as debugging. I see great potential here but I struggled to find my way around. Really hope anyone can help me out.

I have one related to jupyter on VS Code, powered by this extension.

  1. Jupyter output seems to be not using screen real estate efficiently.
    image

Ideally it should also use all the part on the right of the screen? I think maybe it is making space for some other thing, such as minimap, but I don' really need it, want to see the chart instead.

P.S. really appreciate the great work! I am listening to Don's interview on Talk Python to Me, great stuff!

Environment data

VS Code version: 1.10.1
Python Extension version: 0.5.9
Python Version: 3.5
OS and version: Ubuntu 16.04

Actual behavior

the image above

Expected behavior

Using the right half of the screen when displaying results from Jupyter

Steps to reproduce:

  • plot or print anything with the jupyter integration

Settings

Your launch.json (if dealing with debugger issues):

Your settings.json:

Logs

Output from Python output panel

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

Copied from original issue: DonJayamanne/pythonVSCode#787

Jupyter does not work with WinPython 3.6.0

From @ketigid on February 8, 2017 2:8

Environment data

VS Code version: 1.9.0
Python Extension version: 0.5.8
Python Version: 3.6.0
OS and version: Window 7 SP1

Actual behavior

Nothing happens with I click Run Cell

Expected behavior

Results tab should appear with results. Kernel info should appear in status bar.
Jupyter works as expected with I use WinPython 3.5.1.3 though.

Steps to reproduce:

Settings

Your launch.json (if dealing with debugger issues):

Your settings.json:

    "python.workspaceSymbols.enabled": false,
    "files.autoSave": "afterDelay",
    // "python.pythonPath": "D:/WinPython-64bit-3.5.1.3/python-3.5.1.amd64/python.exe", // Works fine
    "python.pythonPath": "D:/WinPython-64bit-3.6.0.1Qt5/python-3.6.0.amd64/python.exe", // Does not work
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true

Logs

Output from Python output panel

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

Copied from original issue: DonJayamanne/pythonVSCode#719

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.