{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Démo of nbtutor offline!" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "ExecuteTime": { "end_time": "2021-02-21T00:22:38.914479Z", "start_time": "2021-02-21T00:22:38.907649Z" } }, "outputs": [], "source": [ "%reload_ext nbtutor" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "ExecuteTime": { "end_time": "2021-02-21T00:22:44.075642Z", "start_time": "2021-02-21T00:22:39.930489Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "PING google.com(par21s04-in-x0e.1e100.net (2a00:1450:4007:811::200e)) 56 data bytes\n", "64 bytes from par21s04-in-x0e.1e100.net (2a00:1450:4007:811::200e): icmp_seq=1 ttl=118 time=7.18 ms\n", "64 bytes from par21s04-in-x0e.1e100.net (2a00:1450:4007:811::200e): icmp_seq=2 ttl=118 time=7.18 ms\n", "64 bytes from par21s04-in-x0e.1e100.net (2a00:1450:4007:811::200e): icmp_seq=3 ttl=118 time=7.28 ms\n", "64 bytes from par21s04-in-x0e.1e100.net (2a00:1450:4007:811::200e): icmp_seq=4 ttl=118 time=7.25 ms\n", "64 bytes from par21s04-in-x0e.1e100.net (2a00:1450:4007:811::200e): icmp_seq=5 ttl=118 time=7.25 ms\n", "\n", "--- google.com ping statistics ---\n", "5 packets transmitted, 5 received, 0% packet loss, time 4005ms\n", "rtt min/avg/max/mdev = 7.187/7.233/7.286/0.066 ms\n" ] } ], "source": [ "!ping -c 5 google.com" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "ExecuteTime": { "end_time": "2021-02-21T00:22:44.273309Z", "start_time": "2021-02-21T00:22:44.115312Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\r\n", " IP : 78.197.124.179\r\n", " ugi73-2_migr-78-197-124-179.fbx.proxad.net\r\n", "\r\n", "\r\n", " Pas de proxy détecté - No Proxy detected\r\n" ] } ], "source": [ "!wget --quiet http://monip.org -O - | html2text" ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "ExecuteTime": { "end_time": "2021-02-21T00:22:44.838541Z", "start_time": "2021-02-21T00:22:44.832312Z" } }, "outputs": [], "source": [ "%%nbtutor?" ] }, { "cell_type": "code", "execution_count": 14, "metadata": { "ExecuteTime": { "end_time": "2021-02-21T00:22:47.774862Z", "start_time": "2021-02-21T00:22:47.689447Z" } }, "outputs": [ { "name": "nbtutor", "output_type": "stream", "text": [ "2025\n" ] } ], "source": [ "%%nbtutor --reset --force --debug\n", "\n", "x = sum([i**3 for i in range(1, 10)])\n", "print(x)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "celltoolbar": "Visualize", "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.6.9" }, "toc": { "base_numbering": 1, "nav_menu": {}, "number_sections": true, "sideBar": true, "skip_h1_title": false, "title_cell": "Table of Contents", "title_sidebar": "Contents", "toc_cell": false, "toc_position": {}, "toc_section_display": true, "toc_window_display": false }, "varInspector": { "cols": { "lenName": 16, "lenType": 16, "lenVar": 40 }, "kernels_config": { "python": { "delete_cmd_postfix": "", "delete_cmd_prefix": "del ", "library": "var_list.py", "varRefreshCmd": "print(var_dic_list())" }, "r": { "delete_cmd_postfix": ") ", "delete_cmd_prefix": "rm(", "library": "var_list.r", "varRefreshCmd": "cat(var_dic_list()) " } }, "types_to_exclude": [ "module", "function", "builtin_function_or_method", "instance", "_Feature" ], "window_display": false } }, "nbformat": 4, "nbformat_minor": 4 }