-
-
Save anandprabhakar0507/a0ce7664368434d3117b7160497ae97d to your computer and use it in GitHub Desktop.
Include a Third Party library not in skulpt-stdlib.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This snippet shows the cool new functionality added by @bzwheeler and the team at trinket.io | |
// You can now develop and host your own modules for skulpt, and set up a page to make those | |
// modules available as in the following. | |
Sk.externalLibraries = { | |
numpy : { | |
path: 'http://example.com/static/primeronoo/skulpt/external/numpy/__init__.js', | |
dependencies: ['/static/primeronoo/skulpt/external/deps/math.js'], | |
}, | |
matplotlib : { | |
path: '/static/primeronoo/skulpt/external/matplotlib/__init__.js' | |
}, | |
"matplotlib.pyplot" : { | |
path: '/static/primeronoo/skulpt/external/matplotlib/pyplot/__init__.js', | |
dependencies: ['/static/primeronoo/skulpt/external/deps/d3.min.js'], | |
}, | |
"arduino": { | |
path: '/static/primeronoo/skulpt/external/arduino/__init__.js' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment