{ "cells": [ { "cell_type": "markdown", "metadata": { "collapsed": true, "pycharm": { "name": "#%% md\n" } }, "source": [ "# Notebook" ] }, { "cell_type": "markdown", "source": [ "sokort 支持在 Jupyter Notebook 中直接显示绘图结果。\n", "\n", "如果生成单张图片,则直接显示。" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%% md\n" } } }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [ "from sokort import show_plot\n", "show_plot(\"grapes_gfs_gmf\", \"pwat_sfc_an_aea\", \"2021071100\", \"24h\")" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%%\n" } } }, { "cell_type": "markdown", "source": [ "如果生成多张图片,则使用 ipywidgets 标签页展示 (文档暂时无法显示)" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%% md\n" } } }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [ "show_plot(\"grapes_meso_3km\", \"area_cape_850wind\", \"2021071100\", \"24h\")\n" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%%\n" } } } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 0 }