mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 00:06:58 +08:00
@@ -28,11 +28,17 @@
|
|||||||
"import sys, site\n",
|
"import sys, site\n",
|
||||||
"from pathlib import Path\n",
|
"from pathlib import Path\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"################################# NOTE #################################\n",
|
||||||
|
"# Please be aware that if colab installs the latest numpy and pyqlib #\n",
|
||||||
|
"# in this cell, users should RESTART the runtime in order to run the #\n",
|
||||||
|
"# following cells successfully. #\n",
|
||||||
|
"########################################################################\n",
|
||||||
"\n",
|
"\n",
|
||||||
"try:\n",
|
"try:\n",
|
||||||
" import qlib\n",
|
" import qlib\n",
|
||||||
"except ImportError:\n",
|
"except ImportError:\n",
|
||||||
" # install qlib\n",
|
" # install qlib\n",
|
||||||
|
" ! pip install --upgrade numpy\n",
|
||||||
" ! pip install pyqlib\n",
|
" ! pip install pyqlib\n",
|
||||||
" # reload\n",
|
" # reload\n",
|
||||||
" site.main()\n",
|
" site.main()\n",
|
||||||
@@ -238,9 +244,7 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"scrolled": false
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from qlib.contrib.report import analysis_model, analysis_position\n",
|
"from qlib.contrib.report import analysis_model, analysis_position\n",
|
||||||
@@ -359,7 +363,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.7.9"
|
"version": "3.8.3"
|
||||||
},
|
},
|
||||||
"toc": {
|
"toc": {
|
||||||
"base_numbering": 1,
|
"base_numbering": 1,
|
||||||
@@ -377,4 +381,4 @@
|
|||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
"nbformat_minor": 4
|
"nbformat_minor": 4
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user