|
73 | 73 | }, |
74 | 74 | { |
75 | 75 | "cell_type": "code", |
76 | | - "execution_count": null, |
| 76 | + "execution_count": 1, |
77 | 77 | "metadata": {}, |
78 | 78 | "outputs": [], |
79 | 79 | "source": [ |
|
117 | 117 | }, |
118 | 118 | { |
119 | 119 | "cell_type": "code", |
120 | | - "execution_count": null, |
| 120 | + "execution_count": 2, |
121 | 121 | "metadata": {}, |
122 | | - "outputs": [], |
| 122 | + "outputs": [ |
| 123 | + { |
| 124 | + "ename": "ModuleNotFoundError", |
| 125 | + "evalue": "No module named 'vuegen'", |
| 126 | + "output_type": "error", |
| 127 | + "traceback": [ |
| 128 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 129 | + "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", |
| 130 | + "Cell \u001b[0;32mIn[2], line 4\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mos\u001b[39;00m\n\u001b[1;32m 3\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01myaml\u001b[39;00m\n\u001b[0;32m----> 4\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mvuegen\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m report_generator\n\u001b[1;32m 5\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mvuegen\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mutils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m get_logger, load_yaml_config\n\u001b[1;32m 7\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m IN_COLAB:\n", |
| 131 | + "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'vuegen'" |
| 132 | + ] |
| 133 | + } |
| 134 | + ], |
123 | 135 | "source": [ |
124 | 136 | "# Imports\n", |
125 | 137 | "import os\n", |
|
169 | 181 | "cell_type": "code", |
170 | 182 | "execution_count": null, |
171 | 183 | "metadata": {}, |
172 | | - "outputs": [], |
| 184 | + "outputs": [ |
| 185 | + { |
| 186 | + "name": "stdout", |
| 187 | + "output_type": "stream", |
| 188 | + "text": [ |
| 189 | + "Streamlit report not executed, set run_streamlit to True to run the report\n" |
| 190 | + ] |
| 191 | + } |
| 192 | + ], |
173 | 193 | "source": [ |
174 | | - "# # Launch the Streamlit report depneding on the platform\n", |
175 | | - "# if not IN_COLAB:\n", |
176 | | - "# !streamlit run streamlit_report/sections/report_manager.py\n", |
177 | | - "# else: # https://discuss.streamlit.io/t/how-to-launch-streamlit-app-from-google-colab-notebook/42399\n", |
178 | | - "# print(\"Password/Enpoint IP for localtunnel is:\",urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip(\"\\n\"))\n", |
179 | | - "# !streamlit run streamlit_report/sections/report_manager.py --server.address=localhost &>/content/logs.txt &\n", |
180 | | - "# !npx localtunnel --port 8501" |
| 194 | + "run_streamlit = False\n", |
| 195 | + "# run_streamlit = True # uncomment line to run the streamlit report\n", |
| 196 | + "# Launch the Streamlit report depneding on the platform\n", |
| 197 | + "if not IN_COLAB and run_streamlit:\n", |
| 198 | + " !streamlit run streamlit_report/sections/report_manager.py\n", |
| 199 | + "elif run_streamlit:\n", |
| 200 | + " # see: https://discuss.streamlit.io/t/how-to-launch-streamlit-app-from-google-colab-notebook/42399\n", |
| 201 | + " print(\"Password/Enpoint IP for localtunnel is:\",urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip(\"\\n\"))\n", |
| 202 | + " !streamlit run streamlit_report/sections/report_manager.py --server.address=localhost &>/content/logs.txt &\n", |
| 203 | + " !npx localtunnel --port 8501 --subdomain vuegen-demo\n", |
| 204 | + "else:\n", |
| 205 | + " print(\"Streamlit report not executed, set run_streamlit to True to run the report\")" |
181 | 206 | ] |
182 | 207 | }, |
183 | 208 | { |
|
314 | 339 | "metadata": {}, |
315 | 340 | "outputs": [], |
316 | 341 | "source": [ |
317 | | - "# # Launch the Streamlit report depneding on the platform\n", |
318 | | - "# if not IN_COLAB:\n", |
319 | | - "# !streamlit run streamlit_report/sections/report_manager.py\n", |
320 | | - "# else: # https://discuss.streamlit.io/t/how-to-launch-streamlit-app-from-google-colab-notebook/42399\n", |
321 | | - "# print(\"Password/Enpoint IP for localtunnel is:\",urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip(\"\\n\"))\n", |
322 | | - "# !streamlit run streamlit_report/sections/report_manager.py --server.address=localhost &>/content/logs.txt &\n", |
323 | | - "# !npx localtunnel --port 8501" |
| 342 | + "run_streamlit = False\n", |
| 343 | + "# run_streamlit = True # uncomment line to run the streamlit report\n", |
| 344 | + "# Launch the Streamlit report depneding on the platform\n", |
| 345 | + "if not IN_COLAB and run_streamlit:\n", |
| 346 | + " !streamlit run streamlit_report/sections/report_manager.py\n", |
| 347 | + "elif run_streamlit:\n", |
| 348 | + " # see: https://discuss.streamlit.io/t/how-to-launch-streamlit-app-from-google-colab-notebook/42399\n", |
| 349 | + " print(\"Password/Enpoint IP for localtunnel is:\",urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip(\"\\n\"))\n", |
| 350 | + " !streamlit run streamlit_report/sections/report_manager.py --server.address=localhost &>/content/logs.txt &\n", |
| 351 | + " !npx localtunnel --port 8501 --subdomain vuegen-demo\n", |
| 352 | + "else:\n", |
| 353 | + " print(\"Streamlit report not executed, set run_streamlit to True to run the report\")" |
324 | 354 | ] |
325 | 355 | }, |
326 | 356 | { |
|
344 | 374 | ], |
345 | 375 | "metadata": { |
346 | 376 | "kernelspec": { |
347 | | - "display_name": "vuegen-IFxaxej_-py3.12", |
| 377 | + "display_name": "vuegen", |
348 | 378 | "language": "python", |
349 | 379 | "name": "python3" |
350 | 380 | }, |
|
358 | 388 | "name": "python", |
359 | 389 | "nbconvert_exporter": "python", |
360 | 390 | "pygments_lexer": "ipython3", |
361 | | - "version": "3.12.6" |
| 391 | + "version": "3.9.21" |
362 | 392 | } |
363 | 393 | }, |
364 | 394 | "nbformat": 4, |
|
0 commit comments