Sign inSign up

asanchez75/datascience-notebook

By asanchez75

•Updated over 8 years ago

It includes sparql kernel

Image
0

110

asanchez75/datascience-notebook repository overview

Run

docker exec -it CONTAINER_ID  jupyter notebook list

to obtain the token (password)

A docker-compose.yml file can be configured as follows

version: '3'
services:
    jupyter:
        image: asanchez75/datascience-notebook:sparqlkernel
        environment:
          GRANT_SUDO: "yes"
        user: root
        volumes:
            - "./jupyter-notebook:/home/jovyan/work"
        ports:
            - "8889:8888"
        restart: always

It includes support for ipython-sql using magics, you can run it by using some code like this

%load_ext sql
%sql mysql://root:[email protected]/db
%sql SELECT * FROM mytable;

where 172.21.0.4 is the internal IP of your mysql server

It includes support for SPARQL endpoints with authentication

%endpoint http://my_ip:8890/sparql
%auth_type|user|password BASIC|my_username|my_password
%display table
%graph http://mygraph
SELECT ?s ?p ?o {
    ?s ?p ?o.
}
limit 10

It includes support for Gastrodon

The dockerfile is available here https://bitbucket.org/asanchez75/datascience-notebook/src/cc822b101761f65e9ec1c6c7314b7cc59da5e51d/datascience-notebook/Dockerfile?at=sparql-kernel&fileviewer=file-view-default⁠

References https://github.com/paulovn/sparql-kernel⁠ https://github.com/catherinedevlin/ipython-sql⁠

Tag summary

Content type

Image

Digest

Size

2.1 GB

Last updated

over 8 years ago

docker pull asanchez75/datascience-notebook:sparqlkernel