GithubHelp home page GithubHelp logo

isabella232 / vscode-gather Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/vscode-gather

0.0 0.0 0.0 1.61 MB

Gather for the Python Extension

License: Other

JavaScript 3.11% TypeScript 96.89%

vscode-gather's Introduction

Gather for the Jupyter extension

A Visual Studio Code extension that adds the experimental Gather feature to the Jupyter extension on Python code. With one button click on any notebook or Interactive Window cell, Gather uses a static analysis technique to find and then copy all of the dependent code that was used to generate that cell's result into a new notebook or script.

Please note that the Python analysis is quite conservative, so if it is unsure whether a line of code is necessary for execution, it will err on the side of including it in the new notebook/script. We are keen to understand how well this feature works for you so please let us know if you are satisfied with the results you are getting through the survey presented at the top of each gathered file.

Quick start

  • Step 1. Install both the Jupyter and the Gather extension for Visual Studio Code.

  • Step 2. Run cells on the Interactive Window or Notebook Editor to do your work.

  • Step 3. When you're satisfied with a cell's output, click the Gather icon to build a new notebook or script that generates that same output.

Additional Information

Gather uses a set of files called "specs" that are used to identify whether each function provided in a Python package modifies kernel state. Currently, the packages that are fully supported are:

  • matplotlib
  • numpy
  • pandas
  • random
  • sklearn
  • a set of built-in Python functions/keywords

It is possible to add packages or APIs to the supported list on your local installation. If you are interested in doing this for your own private work, or would like to contribute to the community to support other popular Python packages, please let us know!

Questions and issues

  • If you come across a problem, please file an issue.
  • If you have a question about how to accomplish something with the extension, please ask on Stack Overflow
  • Any and all feedback is appreciated and welcome!
    • If someone has already filed an issue that encompasses your feedback, please leave a ๐Ÿ‘/๐Ÿ‘Ž reaction on the issue
    • Otherwise please file a new issue

Building

This repository uses a private npm feed for some of it's functionality. In order to access this private feed, you first need access to this: https://dev.azure.com/msresearch/python-program-analysis/_artifacts/feed/MSR-Python-Analysis/connect/npm

Then run

  • npm run npm-auth
  • npm install

vscode-gather's People

Contributors

davidkutu avatar donjayamanne avatar greazer avatar ianmatthewhuff avatar microsoftopensource avatar rchiodo avatar

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.