Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
52c49dd
1
Parent(s):
296ee04
Disable precompilation in PySR colab demo
Browse files- examples/pysr_demo.ipynb +4 -9
examples/pysr_demo.ipynb
CHANGED
@@ -53,8 +53,8 @@
|
|
53 |
"\n",
|
54 |
"#---------------------------------------------------#\n",
|
55 |
"JULIA_VERSION=\"1.7.2\"\n",
|
56 |
-
"JULIA_PACKAGES=\"PyCall SymbolicRegression\"\n",
|
57 |
"JULIA_NUM_THREADS=4\n",
|
|
|
58 |
"#---------------------------------------------------#\n",
|
59 |
"\n",
|
60 |
"if [ -z `which julia` ]; then\n",
|
@@ -66,12 +66,6 @@
|
|
66 |
" wget -nv $URL -O /tmp/julia.tar.gz # -nv means \"not verbose\"\n",
|
67 |
" tar -x -f /tmp/julia.tar.gz -C /usr/local --strip-components 1\n",
|
68 |
" rm /tmp/julia.tar.gz\n",
|
69 |
-
"\n",
|
70 |
-
" for PKG in `echo $JULIA_PACKAGES`; do\n",
|
71 |
-
" echo \"Installing Julia package $PKG...\"\n",
|
72 |
-
" julia -e 'using Pkg; pkg\"add '$PKG'; precompile;\"'\n",
|
73 |
-
" done\n",
|
74 |
-
" \n",
|
75 |
" julia -e 'println(\"Success\")'\n",
|
76 |
"fi"
|
77 |
]
|
@@ -121,12 +115,13 @@
|
|
121 |
]
|
122 |
},
|
123 |
{
|
|
|
124 |
"cell_type": "markdown",
|
125 |
"metadata": {
|
126 |
"id": "6u2WhbVhht-G"
|
127 |
},
|
128 |
"source": [
|
129 |
-
"Let's install the backend of PySR, and all required libraries
|
130 |
"\n",
|
131 |
"**(This may take some time)**"
|
132 |
]
|
@@ -1223,7 +1218,7 @@
|
|
1223 |
"name": "python",
|
1224 |
"nbconvert_exporter": "python",
|
1225 |
"pygments_lexer": "ipython3",
|
1226 |
-
"version": "3.8.
|
1227 |
},
|
1228 |
"widgets": {
|
1229 |
"application/vnd.jupyter.widget-state+json": {
|
|
|
53 |
"\n",
|
54 |
"#---------------------------------------------------#\n",
|
55 |
"JULIA_VERSION=\"1.7.2\"\n",
|
|
|
56 |
"JULIA_NUM_THREADS=4\n",
|
57 |
+
"export JULIA_PKG_PRECOMPILE_AUTO=0\n",
|
58 |
"#---------------------------------------------------#\n",
|
59 |
"\n",
|
60 |
"if [ -z `which julia` ]; then\n",
|
|
|
66 |
" wget -nv $URL -O /tmp/julia.tar.gz # -nv means \"not verbose\"\n",
|
67 |
" tar -x -f /tmp/julia.tar.gz -C /usr/local --strip-components 1\n",
|
68 |
" rm /tmp/julia.tar.gz\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
" julia -e 'println(\"Success\")'\n",
|
70 |
"fi"
|
71 |
]
|
|
|
115 |
]
|
116 |
},
|
117 |
{
|
118 |
+
"attachments": {},
|
119 |
"cell_type": "markdown",
|
120 |
"metadata": {
|
121 |
"id": "6u2WhbVhht-G"
|
122 |
},
|
123 |
"source": [
|
124 |
+
"Let's install the backend of PySR, and all required libraries.\n",
|
125 |
"\n",
|
126 |
"**(This may take some time)**"
|
127 |
]
|
|
|
1218 |
"name": "python",
|
1219 |
"nbconvert_exporter": "python",
|
1220 |
"pygments_lexer": "ipython3",
|
1221 |
+
"version": "3.10.8 (main, Oct 13 2022, 09:48:40) [Clang 14.0.0 (clang-1400.0.29.102)]"
|
1222 |
},
|
1223 |
"widgets": {
|
1224 |
"application/vnd.jupyter.widget-state+json": {
|