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

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.