Spaces:
Running
Running
MilesCranmer
commited on
Commit
·
c0d9c46
1
Parent(s):
c792152
Add required Julia packages to demo
Browse files- examples/pysr_demo.ipynb +8 -6
examples/pysr_demo.ipynb
CHANGED
@@ -55,6 +55,7 @@
|
|
55 |
"\n",
|
56 |
"#---------------------------------------------------#\n",
|
57 |
"JULIA_VERSION=\"1.7.2\"\n",
|
|
|
58 |
"JULIA_NUM_THREADS=4\n",
|
59 |
"#---------------------------------------------------#\n",
|
60 |
"\n",
|
@@ -67,6 +68,12 @@
|
|
67 |
" wget -nv $URL -O /tmp/julia.tar.gz # -nv means \"not verbose\"\n",
|
68 |
" tar -x -f /tmp/julia.tar.gz -C /usr/local --strip-components 1\n",
|
69 |
" rm /tmp/julia.tar.gz\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
" julia -e 'println(\"Success\")'\n",
|
71 |
"fi"
|
72 |
]
|
@@ -1180,14 +1187,9 @@
|
|
1180 |
"accelerator": "GPU",
|
1181 |
"colab": {
|
1182 |
"collapsed_sections": [],
|
1183 |
-
"name": "
|
1184 |
"provenance": []
|
1185 |
},
|
1186 |
-
"kernelspec": {
|
1187 |
-
"display_name": "Python (main_ipynb)",
|
1188 |
-
"language": "python",
|
1189 |
-
"name": "main_ipynb"
|
1190 |
-
},
|
1191 |
"language_info": {
|
1192 |
"codemirror_mode": {
|
1193 |
"name": "ipython",
|
|
|
55 |
"\n",
|
56 |
"#---------------------------------------------------#\n",
|
57 |
"JULIA_VERSION=\"1.7.2\"\n",
|
58 |
+
"JULIA_PACKAGES=\"PyCall SymbolicRegression\"\n",
|
59 |
"JULIA_NUM_THREADS=4\n",
|
60 |
"#---------------------------------------------------#\n",
|
61 |
"\n",
|
|
|
68 |
" wget -nv $URL -O /tmp/julia.tar.gz # -nv means \"not verbose\"\n",
|
69 |
" tar -x -f /tmp/julia.tar.gz -C /usr/local --strip-components 1\n",
|
70 |
" rm /tmp/julia.tar.gz\n",
|
71 |
+
"\n",
|
72 |
+
" for PKG in `echo $JULIA_PACKAGES`; do\n",
|
73 |
+
" echo \"Installing Julia package $PKG...\"\n",
|
74 |
+
" julia -e 'using Pkg; pkg\"add '$PKG'; precompile;\"'\n",
|
75 |
+
" done\n",
|
76 |
+
" \n",
|
77 |
" julia -e 'println(\"Success\")'\n",
|
78 |
"fi"
|
79 |
]
|
|
|
1187 |
"accelerator": "GPU",
|
1188 |
"colab": {
|
1189 |
"collapsed_sections": [],
|
1190 |
+
"name": "pysr_demo.ipynb",
|
1191 |
"provenance": []
|
1192 |
},
|
|
|
|
|
|
|
|
|
|
|
1193 |
"language_info": {
|
1194 |
"codemirror_mode": {
|
1195 |
"name": "ipython",
|