{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Mobile-Friendly Jupyter Notebook\n", "\n", "This environment is optimized for mobile development. The classic Jupyter Notebook interface is more touch-friendly than JupyterLab.\n", "\n", "## Basic Usage\n", "\n", "- Tap a cell to select it\n", "- Use the toolbar buttons to run cells\n", "- Create new cells with the + button\n", "- Save your work frequently" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "source": [ "# Simple test to verify the environment\n", "print(\"Hello from Jupyter!\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Available Libraries\n", "\n", "Let's check what libraries are available:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "source": [ "import numpy as np\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import torch\n", "import transformers\n", "\n", "libraries = {\n", " \"NumPy\": np.__version__,\n", " \"Pandas\": pd.__version__,\n", " \"PyTorch\": torch.__version__,\n", " \"Transformers\": transformers.__version__\n", "}\n", "\n", "for lib, version in libraries.items():\n", " print(f\"{lib}: {version}\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Simple Data Visualization\n", "\n", "Here's a basic example of data visualization that should work well on mobile:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "source": [ "# Configure matplotlib for better mobile display\n", "plt.rcParams['figure.figsize'] = (8, 6) # Smaller figure size\n", "plt.rcParams['font.size'] = 14 # Larger font\n", "plt.rcParams['lines.linewidth'] = 3 # Thicker lines\n", "plt.rcParams['axes.labelsize'] = 14 # Larger axis labels\n", "plt.rcParams['axes.titlesize'] = 16 # Larger title\n", "\n", "# Generate sample data\n", "x = np.linspace(0, 10, 30) # Fewer points for mobile\n", "y = np.sin(x)\n", "\n", "# Create the plot\n", "plt.figure()\n", "plt.plot(x, y, 'o-', markersize=8)\n", "plt.title('Mobile-Friendly Plot')\n", "plt.xlabel('X axis')\n", "plt.ylabel('Y axis')\n", "plt.grid(True)\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Creating a New Notebook\n", "\n", "To create a new notebook:\n", "\n", "1. Click the \"Files\" tab at the top\n", "2. Navigate to the directory where you want to create the notebook\n", "3. Click the \"New\" dropdown menu and select \"Python 3\"\n", "\n", "## Tips for Mobile Development\n", "\n", "- Keep code cells short and focused\n", "- Use markdown cells for documentation\n", "- Save your work frequently\n", "- For long sessions, consider using an external keyboard" ] } ], "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.9.0" } }, "nbformat": 4, "nbformat_minor": 4 }