{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# labnotes.2019-07-15.C360\n", "* Wenchang Yang (wenchang@prnceton.edu)\n", "* Department of Geosciences, Princeton University" ] }, { "cell_type": "code", "execution_count": 32, "metadata": { "ExecuteTime": { "end_time": "2019-07-16T19:49:47.624849Z", "start_time": "2019-07-16T19:49:47.600620Z" }, "code_folding": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "**2019-07-16T15:49:47.610222**\n", ">>> Importing Python 3.7.3 packages...\n", "[OK]: import sys, os, os.path, datetime, glob\n", "[OK]: import numpy as np-1.16.3\n", "[OK]: import matplotlib as mpl-3.0.3; backend: module://ipykernel.pylab.backend_inline\n", "[OK]: #---import matplotlib.pyplot as plt\n", "[OK]: #---from pylab import *\n", "[OK]: import xarray as xr-0.12.1\n", "[OK]: #---import netCDF4\n", "[OK]: #---import dask\n", "[OK]: #---import bottleneck\n", "[OK]: import pandas as pd-0.24.2\n", "[OK]: from mpl_toolkits.basemap import Basemap\n", " PROJ_LIB = /scratch/gpfs/GEOCLIM/wenchang/miniconda3/envs/geoclim/share/proj\n", ">>>Import packages from Wenchang Yang (wython)...\n", "[OK]: import geoplots as gt\n", "[OK]: from geoplots import geoplot, fxyplot, mapplot, xticksyear\n", "[OK]: import geoxarray\n", "[OK]: import filter\n", "[OK]: import xlearn\n", "[OK]: import mysignal as sig\n", "**Done**\n" ] } ], "source": [ "# init\n", "%matplotlib inline\n", "%run -im pythonstartup\n", "%config InlineBackend.figure_format ='retina'\n", "plt.rcParams['figure.dpi'] = 150\n", "# https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/\n", "from IPython.core.interactiveshell import InteractiveShell\n", "InteractiveShell.ast_node_interactivity = 'last' # options: 'all', 'none', 'last'\n", "# https://stackoverflow.com/questions/41125690/matplotlib-notebook-showing-a-blank-histogram\n", "# in case to switch back to the notebook backend, run the 2 lines below, \n", "# reload(plt)\n", "# %matplotlib notebook" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2019-07-15T16:16:05.756835Z", "start_time": "2019-07-15T16:16:05.678973Z" } }, "outputs": [ { "data": { "text/html": [ "
\n",
"Client\n", "
| \n",
"\n",
"Cluster\n", "
| \n",
"