获取iClientPy ============== iClientPy正在开发中,如果你有意试用,可以通过两个途径获取: * 从Anaconda安装 1. 如果没有Anaconda环境,参考 :ref:`iClientPy从零开始` 进行安装,已经存在Anaconda环境,跳过该步骤 2. 配置清华源(也可是国内其他镜像源)以及第三方库的依赖源 :: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --set show_channel_urls yes 3. 执行下面命令 :: conda install -y -c http://iclientpy.supermap.io/conda/channel iclientpy **提醒:** 第一次安装耗时会比较久 4. 执行命令在jupyter notebook中启用iclientpy :: jupyter nbextension install --py --symlink --sys-prefix iclientpy jupyter nbextension enable --py --sys-prefix iclientpy * 从docker镜像启动 1. 执行下面命令拉取最新的iClientPy的jupyterhub镜像 :: docker pull registry.cn-beijing.aliyuncs.com/iclientpy/iclientpy-jupyter-notebook 2. 执行下面命令 :: docker run --name iclientpy -p 8888:8888 registry.cn-beijing.aliyuncs.com/iclientpy/iclientpy-jupyter-notebook 其中,iclientpy为创建后docker容器名称,可以修改。第一个8888为docker宿主机上的端口,如果被占用可以为未被占用端口。 3. 访问http://{宿主机ip}:8888 **注意:** 该服务默认需要token登录,可以通过命令 docker logs {containername}查看notebook日志获取token 使用过程中出现问题,可以: * 到https://github.com/SuperMap/iclient-python/issues提试用issue,留下你的联系方式,开发人员会联系你。