{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# naslov\n", "s fg fdg dh gf\n", " dh gf\n", " " ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%load_ext sql" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " * mysql://pb:***@pb.fri.uni-lj.si:3306/vaje\n", "10 rows affected.\n" ] }, { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
jidimeratingstarost
22Darko745.0
29Borut133.0
31Lojze855.5
32Andrej825.5
58Rajko1035.0
64Henrik735.0
71Zdravko1016.0
74Henrik935.0
85Anze325.5
95Bine363.5
" ], "text/plain": [ "[(22, 'Darko', 7, 45.0),\n", " (29, 'Borut', 1, 33.0),\n", " (31, 'Lojze', 8, 55.5),\n", " (32, 'Andrej', 8, 25.5),\n", " (58, 'Rajko', 10, 35.0),\n", " (64, 'Henrik', 7, 35.0),\n", " (71, 'Zdravko', 10, 16.0),\n", " (74, 'Henrik', 9, 35.0),\n", " (85, 'Anze', 3, 25.5),\n", " (95, 'Bine', 3, 63.5)]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "%%sql\n", "select * from jadralec;" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The sql extension is already loaded. To reload it, use:\n", " %reload_ext sql\n" ] } ], "source": [ "import sqlalchemy\n", "%load_ext sql\n", "%sql mysql://pb:pbvaje@pb.fri.uni-lj.si:3306/vaje" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "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.8.5" } }, "nbformat": 4, "nbformat_minor": 4 }