File size: 3,540 Bytes
d388b58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
 "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
}