Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import os.path | |
from genquery import Query, AS_DICT | |
def testFunc(rule_args, callback, rei): | |
callback.writeLine("serverLog", "Entering testFunc") | |
x = rule_args[0] | |
y = rule_args[1] | |
callback.writeLine("serverLog", "x = [{}]".format(x)) | |
callback.writeLine("serverLog", "y = [{}]".format(y)) | |
rule_args[1] = "This is new!" |
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
class Outer(object): | |
""" | |
>>> Outer.class_attr | |
'ca0' | |
>>> outer = Outer("ia0", "ia1", "ia2") | |
>>> outer.inst_attr | |
'ia0' | |
>>> outer.inner | |
<__main__.Outer.Inner object at 0x...> | |
>>> outer.inner.class_attr |
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
metadata: | |
spec: | |
restartPolicy: Never | |
volumes: | |
- flexVolume: | |
driver: informaticslab/pysssix-flex-volume | |
options: | |
readonly: "true" | |
name: s3 | |
containers: |


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
> jupyter kernelgateway | |
edit kernel name in index.ipynb of bundle with the output of : | |
> jupyter kernelspec list | |
run server and gateway in same env and same dir as unzipped bundle | |
> jupyter —help # for commands |
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
conda create -c conda-forge -n rsmbund jupyter | |
source activate rsmbund | |
conda install -y -c conda-forge/label/rc -c conda-forge h5py | |
conda install -y -c conda-forge/label/rc -c conda-forge libpng | |
conda install -y -c conda-forge/label/rc -c conda-forge matplotlib | |
conda install -c conda-forge/label/rc -c conda-forge ipywidgets | |
conda install -y -c conda-forge/label/rc -c conda-forge basemap | |
conda install -y -c conda-forge/label/rc -c conda-forge basemap-data-hires | |
conda install -y -c conda-forge/label/rc -c conda-forge owslib | |
pip install ipympl |
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
conda create -c conda-forge -n rsmbund jupyter | |
source activate rsmbund | |
conda install -y -c conda-forge/label/rc -c conda-forge h5py | |
conda install -y -c conda-forge/label/rc -c conda-forge libpng | |
conda install -y -c conda-forge/label/rc -c conda-forge matplotlib | |
conda install -c conda-forge/label/rc -c conda-forge ipywidgets | |
conda install -y -c conda-forge/label/rc -c conda-forge basemap | |
conda install -y -c conda-forge/label/rc -c conda-forge basemap-data-hires | |
conda install -y -c conda-forge/label/rc -c conda-forge owslib | |
pip install ipympl |
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
name: rsmdash | |
channels: !!python/tuple | |
- defaults | |
dependencies: | |
- conda-forge/label/rc::matplotlib=2.0.0rc1=np111py35_1 | |
- conda-forge::backports.shutil_get_terminal_size=1.0.0=py35_0 | |
- conda-forge::basemap=1.0.8.dev0=np111py35_3 | |
- conda-forge::basemap-data-hires=1.0.8.dev0=2 | |
- conda-forge::ca-certificates=2016.9.26=0 | |
- conda-forge::cairo=1.14.6=0 |
NewerOlder