Giter Site home page Giter Site logo

nilqed / spad_http Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 2.97 MB

Jupyter kernel for SPAD

License: Other

Common Lisp 82.14% Makefile 0.36% Shell 0.27% HTML 11.54% CSS 0.51% C 0.76% Batchfile 0.16% Perl 0.07% XSLT 0.34% Python 2.03% JavaScript 1.83%
axiom fricas spad common-lisp hunchentoot http-server jupyter-notebook python

spad_http's Introduction

spad_http : Jupyter kernel for SPAD ( ๐Ÿšง)

This is a beta version of a new Jupyter kernel for FriCAS, Axiom ... (release ๐Ÿ”œ)

  1. git clone https://github.com/nilqed/spad_http.git
  2. cd spad_http
  3. ./start.sh
  4. NEW -> SPAD

spad_http_ss

Required

  • FriCAS (in path: fricas), compiled with multi-threaded Lisp (e.g. SBCL > 1.4.x)
  • Python/Jupyter (python 2 required !!)
  • Python modules (pip install): requests, plotly
  • bash (for start.sh )

Status

  • Text (charybdis) and LaTeX working
  • Code completion
  • stdout/stderr -> Notebook
  • todo: timing (set message time on) , plotting, inspection

Tested with

  Value = "FriCAS 1.3.3 compiled at Don Apr 12 19:26:08 CEST 2018"
  .... compiled with sbcl --version SBCL 1.4.6
  jupyter --version ==> 4.4.0
  Ubuntu 16.04 LTS

- Value = "FriCAS 1.3.4 compiled at Do Jul 12 20:14:56 CEST 2018"
  ..... compiled with sbcl --version SBCL 1.4.9
  jupyter --version ==> 4.4.0
  jupyter notebook --version ==> 5.6.0
  Ubuntu 18.04 LTS

Note(s):

There is now a jupyter notebook stop command that takes a port number and shuts down the corresponding notebook server. From 5.1, also HTTP --> POST request to /api/shutdown. In start.sh we use jupyter notebook stop 8888 after FriCAS )quit.

How it works

The directory spad_http" contains, besides a local quicklisp distribution, Hunchentoot - The Common Lisp web server formerly known as TBNL (see http://edicl.github.io/hunchentoot/). The subdirectory spadserver contains a Python wrapper kernel (see [http://jupyter-client.readthedocs.io/en/stable/wrapperkernels.html) which starts an instance of FriCAS and loading the webserver by start.input at the same time. The HTTP server is listening on port 4242 (may be changed, of course) for GET/PUT requests by the kernel. Data interchange goes via JSON (see https://github.com/nilqed/webSPAD for details).

-- Manually starting .......... cd spad_http && fricas -eval ")r start" 
-- Test http server with ...... http://localhost:4242/eval?code=D(x^n,x,6)

spad_http's People

Contributors

nilqed avatar

Stargazers

 avatar

Watchers

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