Spaces:
Sleeping
Sleeping
Patch colab with fallback runtime
Browse files- README.md +3 -3
- examples/pysr_demo.ipynb +13 -6
README.md
CHANGED
|
@@ -13,9 +13,9 @@ PySR uses evolutionary algorithms to search for symbolic expressions which optim
|
|
| 13 |
|
| 14 |
<div align="center">
|
| 15 |
|
| 16 |
-
| **Docs** | **pip** | **conda** | **Stats** |
|
| 17 |
-
|
| 18 |
-
|[](https://astroautomata.com/PySR/)|[](https://badge.fury.io/py/pysr)|[](https://anaconda.org/conda-forge/pysr)|<div align="center">pip: [](https://badge.fury.io/py/pysr)<br>conda: [](https://anaconda.org/conda-forge/pysr)</div>|
|
| 19 |
|
| 20 |
</div>
|
| 21 |
|
|
|
|
| 13 |
|
| 14 |
<div align="center">
|
| 15 |
|
| 16 |
+
| **Docs** | **colab** | **pip** | **conda** | **Stats** |
|
| 17 |
+
|---|---|---|---|---|
|
| 18 |
+
|[](https://astroautomata.com/PySR/)|[](https://colab.research.google.com/github/MilesCranmer/PySR/blob/master/examples/pysr_demo.ipynb)|[](https://badge.fury.io/py/pysr)|[](https://anaconda.org/conda-forge/pysr)|<div align="center">pip: [](https://badge.fury.io/py/pysr)<br>conda: [](https://anaconda.org/conda-forge/pysr)</div>|
|
| 19 |
|
| 20 |
</div>
|
| 21 |
|
examples/pysr_demo.ipynb
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
]
|
| 11 |
},
|
| 12 |
{
|
|
|
|
| 13 |
"cell_type": "markdown",
|
| 14 |
"metadata": {
|
| 15 |
"id": "tQ1r1bbb0yBv"
|
|
@@ -18,13 +19,19 @@
|
|
| 18 |
"\n",
|
| 19 |
"## Instructions\n",
|
| 20 |
"1. Work on a copy of this notebook: _File_ > _Save a copy in Drive_ (you will need a Google account).\n",
|
| 21 |
-
"2. (Optional) If you would like to do the deep learning component of this tutorial,
|
| 22 |
-
"3.
|
| 23 |
-
"
|
|
|
|
|
|
|
| 24 |
"\n",
|
| 25 |
"_Notes_:\n",
|
| 26 |
-
"* If your Colab Runtime gets reset (e.g., due to inactivity), repeat steps
|
| 27 |
-
"* After installation, if you want to change the Julia version or activate/deactivate the GPU, you will need to reset the Runtime: _Runtime_ > _Delete and disconnect runtime_ and repeat steps 2-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
]
|
| 29 |
},
|
| 30 |
{
|
|
@@ -1222,7 +1229,7 @@
|
|
| 1222 |
"name": "python",
|
| 1223 |
"nbconvert_exporter": "python",
|
| 1224 |
"pygments_lexer": "ipython3",
|
| 1225 |
-
"version": "3.10.
|
| 1226 |
},
|
| 1227 |
"widgets": {
|
| 1228 |
"application/vnd.jupyter.widget-state+json": {
|
|
|
|
| 10 |
]
|
| 11 |
},
|
| 12 |
{
|
| 13 |
+
"attachments": {},
|
| 14 |
"cell_type": "markdown",
|
| 15 |
"metadata": {
|
| 16 |
"id": "tQ1r1bbb0yBv"
|
|
|
|
| 19 |
"\n",
|
| 20 |
"## Instructions\n",
|
| 21 |
"1. Work on a copy of this notebook: _File_ > _Save a copy in Drive_ (you will need a Google account).\n",
|
| 22 |
+
"2. (Optional) If you would like to do the deep learning component of this tutorial, ensure the GPU accelerator is turned on, with Edit->Notebook settings->Hardware accelerator->GPU\n",
|
| 23 |
+
"3. **Use fallback runtime**. Open the command pallette (bottom left -> second icon from the bottom), and search for \"use fallback runtime\", and hit enter.\n",
|
| 24 |
+
" - This is a temporary workaround for a bug in Colab, until the current runtime is patched.\n",
|
| 25 |
+
"4. Execute the following cell (click on it and press Ctrl+Enter) to install Julia, IJulia and other packages. This takes a couple of minutes.\n",
|
| 26 |
+
"5. Continue to the next section.\n",
|
| 27 |
"\n",
|
| 28 |
"_Notes_:\n",
|
| 29 |
+
"* If your Colab Runtime gets reset (e.g., due to inactivity), repeat steps 4-5.\n",
|
| 30 |
+
"* After installation, if you want to change the Julia version or activate/deactivate the GPU, you will need to reset the Runtime: _Runtime_ > _Delete and disconnect runtime_ and repeat steps 2-5.\n",
|
| 31 |
+
"\n",
|
| 32 |
+
"> **Warning**\n",
|
| 33 |
+
"> \n",
|
| 34 |
+
"> Ensure that you have done step 3 above, otherwise you will get an error when you try to use Julia."
|
| 35 |
]
|
| 36 |
},
|
| 37 |
{
|
|
|
|
| 1229 |
"name": "python",
|
| 1230 |
"nbconvert_exporter": "python",
|
| 1231 |
"pygments_lexer": "ipython3",
|
| 1232 |
+
"version": "3.10.9 (main, Dec 15 2022, 17:11:09) [Clang 14.0.0 (clang-1400.0.29.202)]"
|
| 1233 |
},
|
| 1234 |
"widgets": {
|
| 1235 |
"application/vnd.jupyter.widget-state+json": {
|