GithubHelp home page GithubHelp logo

stevel-msft / jupyter-powershell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaykul/jupyter-powershell

1.0 2.0 0.0 34 KB

Jupyter Kernel for PowerShell

License: Other

C# 74.91% Jupyter Notebook 25.09%

jupyter-powershell's Introduction

A Jupyter Kernel for PowerShell

This kernel is being written in C#, and in the process, I've taken some messaging code from the iCSharp kernel and made a generic library for .Net with a re-usable core for anyone who needs to create Jupyter kernels in .Net languages -- so feel free to borrow that if you like (it's under the Apache license).

Current Status

At this point, I'm only handling two messages:

  • KernelInfo request
  • Execute request

The PowerShell kernel is therefore working, and returning simple text output as on the console (see examples below).

NO ERROR OUTPUT

I am doing something wrong in the way I'm sending error output back, so there's currently no output when there are errors. That's my number one priority to fix, if anyone knows what I'm doing wrong -- I'll get to it tonight, otherwise.

Features

Apart from the built-in Jupyter features, I'm going to add some output enhancements so you can hook into widgets, etc. However, there's none of thata yet, except that:

  • If you output HTML, it's rendered. I'm currently detecting this in the most simplistic fashion: by testing if the output starts with "<" and ends with ">". That probably needs work, but it's good enough for now.
  • When a command outputs objects, you get the text rendering, but the actual objects are also returned as application/json data.

PowerShell Core

In order to get cross-platform support, this kernel is using PowerShell Core, which means you'll want to have PowerShell 6 Beta 3 installed to try it out. I'm hoping to provide a Full Framework (aka Windows PowerShell) version too, once I start doing releases.

To use it or build it, you need dotnet core 2 preview, and if you want to contribute, and want to build it in Visual Studio, you need VS 2017 Preview version 15.3.

jupyter-powershell's People

Contributors

it-praktyk avatar jaykul avatar

Stargazers

 avatar

Watchers

 avatar  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.