对thredds目录进行爬网的jupyter笔记本服务器扩展
jupyterlab-thredds的Python项目详细描述
#朱庇特实验室
[![生成状态](https://travis-ci.org/eWaterCycle/jupyterlab_thredds.svg?branch=master)](https://travis-ci.org/eWaterCycle/jupyterlab_thredds) [![声纳云质量](https://sonarcloud.io/api/project_badges/measure?project=jupyterlab_thredds&metric=alert_status)](https://sonarcloud.io/dashboard?id=jupyterlab_thredds) [![声纳云覆盖](https://sonarcloud.io/api/project_badges/measure?project=jupyterlab_thredds&metric=coverage)](https://sonarcloud.io/component_measures?id=jupyterlab_thredds&metric=覆盖范围) [![doi](https://zenodo.org/badge/DOI/10.5281/zenodo.1241006.svg)](https://doi.org/10.5281/zenodo.1241006)
[thredds catalog](https://www.unidata.ucar.edu/software/thredds/v4.6/tds/catalog/index.html)的jupyterlab数据集浏览器
可以将[iris](http://scitools.org.uk/iris/docs/latest/index.html)/[xarray](https://xarray.pydata.org)/[leaflet](https://github.com/jupyter-widgets/ipyleaflet)代码单元注入选定数据集的python笔记本,以进一步处理/可视化该数据集。
啊![截图](https://github.com/eWaterCycle/jupyterlab_thredds/blob/master/jupyterlab_thredds.gif“截图”)
##先决条件
- jupyterlab,pip安装jupyterlab
- ipywidgets,jupyter labextension install@jupyter widgets/jupyterlab manager,对ipyleaflet的要求
- ipyleaflet,jupyter labextension安装jupyter单张,以加载wms层
- [iris](http://scitools.org.uk/iris/docs/latest/index.html),conda install-c conda forge iris
##安装
`bash pip install jupyterlab_thredds jupyter labextension install @ewatercycle/jupyterlab_thredds `
##用法
- 用jupyter lab启动jupyter lab
- 在Jupyter实验室打开笔记本
- 打开左侧的thredds选项卡。
- 填写目录URL
- 按搜索按钮
- 选择打开数据集的方式,默认情况下它使用[iris](http://scitools.org.uk/iris/docs/latest/index.html)python包。
- 按数据集将代码插入笔记本
##开发
对于开发安装(需要[yarn](https://yarnpkg.com/)),请在存储库目录中执行以下操作:
`bash yarn install yarn build jupyter labextension link . python setup.py develop jupyter serverextension enable --sys-prefix jupyterlab_thredds `
要重建包和jupyterlab应用程序:
`bash yarn build jupyter lab build `
监视模式 `bash # shell 1 yarm watch # shell 2 jupyter lab --ip=0.0.0.0--no-browser--watch `
##释放
要制作新版本,请执行以下步骤: 一。更新package.json,citation.cff和jupyterlab_thredds/version.py中的版本 2.确保测试通过运行纱线测试和pytest 三。将实验室扩展发布到npmjs,其中yarn build和yarn publish–access=public 四。使用python setup.py sdist bdist_wheel和twine upload dist/*将服务器扩展发布到pypi 5个。创建github版本 6.在readme.md和citation.cff
中更新doi