Giter Club home page Giter Club logo

jupyterexcel's Introduction

jupyterexcel Package

This is a package to make Jupyter.ipynb file a web api with json result. You can call Jupyter from Excel Formula or Ribbon CallBack Functions SourceCode in JupyterExcel

Before install, please download JupyterExcelAddin.xlsm in above link to try its formula and excel ribbon.

This Jupyter Excel web api can be connected with Excel addin which call this web api. Excel formula will generate a web api url and through winhttp to get json result. It now works Mac Excel by using VBA-Web.

Installation

pip install jupyterexcel

then run

jupyter serverextension enable --py jupyterexcel

Server setting

Please follow config jupyter server and change following values:

c.NotebookApp.allow_origin = '*'  #allow any origin to access your server.  you can ignore it,if it is from local computer
c.NotebookApp.token = 'ABCD'   #it is good to use token mode. When you send url with token, it will ask for password  
c.NotebookApp.allow_remote_access = True  #if you like to set to access from other computer
c.NotebookApp.iopub_data_rate_limit = 32000000  #it might be good to change to a high number, if you will pass large amount of data. (bytes/sec) Maximum rate at which stream output can be sent on iopub before

Example

The following screenshot shows the sample notebook file with a function sum. You can download TestingJupyter.ipynb or create your own. The following is an instance I hosted in google cloud platform, you can open and add a function of yours.
http://34.67.24.96:8888/Excel/TestingJupyter.ipynb?token=ABCD&functionname=sum&1=11&2=8&3=6
http://34.67.24.96:8888/notebooks/TestingJupyter.ipynb?token=ABCD please change 34.67.24.96 to your computer name or localhost

NotebookExample

The following screenshot shows how excel Formula works. Jupyter Excel

The following screenshot Shows how Ribbon Call Back function works Jupyter Ribbon CallBack

Future Development Plan

  1. Make Excel client side more easier to use, such as generate Excel formula proxy
  2. Able to support R, Julia ....
  3. It might only support one notebook page

Reference

read some code from appmode

jupyterexcel's People

Contributors

luozhijian avatar

Watchers

 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.