{"cells":[{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"3b4e82af-fd11-fd43-9d31-0585a8400cca"},"outputs":[],"source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load in \n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the \"../input/\" directory.\n# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\n\nfrom subprocess import check_output\nprint(check_output([\"ls\", \"../input\"]).decode(\"utf8\"))\n\n# Any results you write to the current directory are saved as output."},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"d125f53c-c8d2-470c-12eb-8a8fd614c4fe"},"outputs":[],"source":"import pip\n\nfor package in sorted(pip.get_installed_distributions(), key=lambda package: package.project_name):\n    print(\"{} ({})\".format(package.project_name, package.version))"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"6c452443-41ec-2842-3553-0a642175c53a"},"outputs":[],"source":"from bokeh.plotting import figure, output_file, show\nfrom bokeh.io import output_notebook\noutput_notebook()\n# prepare some data\nx = [1, 2, 3, 4, 5]\ny = [6, 7, 2, 4, 5]\n\n# output to static HTML file\noutput_file(\"lines.html\")\n\n# create a new plot with a title and axis labels\np = figure(title=\"simple line example\", x_axis_label='x', y_axis_label='y')\n\n# add a line renderer with legend and line thickness\np.line(x, y, legend=\"Temp.\", line_width=2)\n\n\n# show the results\nshow(p)"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"5ae95451-2ede-0c4b-b5ab-08744e300ac4"},"outputs":[],"source":"show(p)"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"17d16fd1-a2c7-005f-911f-abadf4ece724"},"outputs":[],"source":""}],"metadata":{"_change_revision":0,"_is_fork":false,"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.5.2"}},"nbformat":4,"nbformat_minor":0}