Skip to content

gwangyi/delpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delpy

Blockly on Jupyter Notebook with Python

Installation

pip install delpy
jupyter nbextension install delpy --py --sys-prefix
jupyter nbextension enable delpy --py --sys-prefix

For developer:

git clone https://github.com/gwangyi/delpy
cd delpy
pip install -e .
jupyter nbextension install delpy --py --sys-prefix --symlink
jupyter nbextension enable delpy --py

Example

from delpy import Delpy, delpy_method


class MyDelpy(Delpy):
    @delpy_method("Category1")
    def hi(self):
        print("Hello!")

    @delpy_method("Category2")
    def hello(self, msg):
        print("Hello, ", msg, "!")

p = MyDelpy()
p

About

Blockly on Jupyter Notebook with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published