Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fcf61da24638f93d44cd057b11a6abdc
mooc-rr
Commits
313e688d
Commit
313e688d
authored
Dec 19, 2025
by
fcf61da24638f93d44cd057b11a6abdc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added formatted packages versions
parent
6f624a1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
167 additions
and
168 deletions
+167
-168
exercice_fr.ipynb
module3/exo3/exercice_fr.ipynb
+167
-168
No files found.
module3/exo3/exercice_fr.ipynb
View file @
313e688d
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
37
,
"execution_count":
1
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
"from statsmodels.stats.multitest import multipletests\n",
"from statsmodels.stats.multitest import multipletests\n",
"from statsmodels.sandbox.regression.predstd import wls_prediction_std\n",
"from statsmodels.sandbox.regression.predstd import wls_prediction_std\n",
"import statsmodels.formula.api as smf\n",
"import statsmodels.formula.api as smf\n",
"import statsmodels.api as sm\n",
"import scipy.stats as stats\n",
"import scipy.stats as stats\n",
"\n",
"\n",
"\n",
"\n",
...
@@ -883,7 +884,7 @@
...
@@ -883,7 +884,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
18
,
"execution_count": 1
5
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -966,7 +967,7 @@
...
@@ -966,7 +967,7 @@
" Dead 7 39 51 42"
" Dead 7 39 51 42"
]
]
},
},
"execution_count": 1
18
,
"execution_count": 1
5
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -1171,7 +1172,7 @@
...
@@ -1171,7 +1172,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
19
,
"execution_count": 1
7
,
"metadata": {
"metadata": {
"hideCode": true,
"hideCode": true,
"hideOutput": true,
"hideOutput": true,
...
@@ -1237,7 +1238,7 @@
...
@@ -1237,7 +1238,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
33
,
"execution_count": 1
8
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -1319,7 +1320,7 @@
...
@@ -1319,7 +1320,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
8
,
"execution_count": 1
9
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -1415,7 +1416,7 @@
...
@@ -1415,7 +1416,7 @@
"3 65-more 0.586631 1.000000"
"3 65-more 0.586631 1.000000"
]
]
},
},
"execution_count": 1
8
,
"execution_count": 1
9
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -1451,7 +1452,7 @@
...
@@ -1451,7 +1452,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
64
,
"execution_count":
20
,
"metadata": {
"metadata": {
"hideCode": false
"hideCode": false
},
},
...
@@ -1538,7 +1539,7 @@
...
@@ -1538,7 +1539,7 @@
"4 Yes Alive 81.4 65-more 0"
"4 Yes Alive 81.4 65-more 0"
]
]
},
},
"execution_count":
64
,
"execution_count":
20
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -1557,7 +1558,7 @@
...
@@ -1557,7 +1558,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
66
,
"execution_count":
21
,
"metadata": {
"metadata": {
"scrolled": true
"scrolled": true
},
},
...
@@ -1576,8 +1577,8 @@
...
@@ -1576,8 +1577,8 @@
"Model Family: Binomial Df Model: 1\n",
"Model Family: Binomial Df Model: 1\n",
"Link Function: logit Scale: 1.0000\n",
"Link Function: logit Scale: 1.0000\n",
"Method: IRLS Log-Likelihood: -240.21\n",
"Method: IRLS Log-Likelihood: -240.21\n",
"Date:
Mon, 15
Dec 2025 Deviance: 480.41\n",
"Date:
Fri, 19
Dec 2025 Deviance: 480.41\n",
"Time: 1
6:56:5
1 Pearson chi2: 568.\n",
"Time: 1
3:10:4
1 Pearson chi2: 568.\n",
"No. Iterations: 5 Covariance Type: nonrobust\n",
"No. Iterations: 5 Covariance Type: nonrobust\n",
"==============================================================================\n",
"==============================================================================\n",
" coef std err z P>|z| [0.025 0.975]\n",
" coef std err z P>|z| [0.025 0.975]\n",
...
@@ -1595,8 +1596,8 @@
...
@@ -1595,8 +1596,8 @@
"Model Family: Binomial Df Model: 1\n",
"Model Family: Binomial Df Model: 1\n",
"Link Function: logit Scale: 1.0000\n",
"Link Function: logit Scale: 1.0000\n",
"Method: IRLS Log-Likelihood: -259.54\n",
"Method: IRLS Log-Likelihood: -259.54\n",
"Date:
Mon, 15
Dec 2025 Deviance: 519.08\n",
"Date:
Fri, 19
Dec 2025 Deviance: 519.08\n",
"Time: 1
6:56:5
1 Pearson chi2: 864.\n",
"Time: 1
3:10:4
1 Pearson chi2: 864.\n",
"No. Iterations: 6 Covariance Type: nonrobust\n",
"No. Iterations: 6 Covariance Type: nonrobust\n",
"==============================================================================\n",
"==============================================================================\n",
" coef std err z P>|z| [0.025 0.975]\n",
" coef std err z P>|z| [0.025 0.975]\n",
...
@@ -1630,7 +1631,7 @@
...
@@ -1630,7 +1631,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
89
,
"execution_count":
22
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -1656,7 +1657,7 @@
...
@@ -1656,7 +1657,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
126
,
"execution_count":
23
,
"metadata": {
"metadata": {
"hideCode": false
"hideCode": false
},
},
...
@@ -1724,7 +1725,7 @@
...
@@ -1724,7 +1725,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
95
,
"execution_count":
24
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -1748,10 +1749,10 @@
...
@@ -1748,10 +1749,10 @@
" <th>Method:</th> <td>IRLS</td> <th> Log-Likelihood: </th> <td> -499.74</td> \n",
" <th>Method:</th> <td>IRLS</td> <th> Log-Likelihood: </th> <td> -499.74</td> \n",
"</tr>\n",
"</tr>\n",
"<tr>\n",
"<tr>\n",
" <th>Date:</th> <td>
Mon, 15
Dec 2025</td> <th> Deviance: </th> <td> 999.49</td> \n",
" <th>Date:</th> <td>
Fri, 19
Dec 2025</td> <th> Deviance: </th> <td> 999.49</td> \n",
"</tr>\n",
"</tr>\n",
"<tr>\n",
"<tr>\n",
" <th>Time:</th> <td>1
7:22:33
</td> <th> Pearson chi2: </th> <td>1.43e+03</td> \n",
" <th>Time:</th> <td>1
3:10:42
</td> <th> Pearson chi2: </th> <td>1.43e+03</td> \n",
"</tr>\n",
"</tr>\n",
"<tr>\n",
"<tr>\n",
" <th>No. Iterations:</th> <td>6</td> <th> Covariance Type: </th> <td>nonrobust</td>\n",
" <th>No. Iterations:</th> <td>6</td> <th> Covariance Type: </th> <td>nonrobust</td>\n",
...
@@ -1785,8 +1786,8 @@
...
@@ -1785,8 +1786,8 @@
"Model Family: Binomial Df Model: 3\n",
"Model Family: Binomial Df Model: 3\n",
"Link Function: logit Scale: 1.0000\n",
"Link Function: logit Scale: 1.0000\n",
"Method: IRLS Log-Likelihood: -499.74\n",
"Method: IRLS Log-Likelihood: -499.74\n",
"Date:
Mon, 15
Dec 2025 Deviance: 999.49\n",
"Date:
Fri, 19
Dec 2025 Deviance: 999.49\n",
"Time: 1
7:22:33
Pearson chi2: 1.43e+03\n",
"Time: 1
3:10:42
Pearson chi2: 1.43e+03\n",
"No. Iterations: 6 Covariance Type: nonrobust\n",
"No. Iterations: 6 Covariance Type: nonrobust\n",
"=====================================================================================\n",
"=====================================================================================\n",
" coef std err z P>|z| [0.025 0.975]\n",
" coef std err z P>|z| [0.025 0.975]\n",
...
@@ -1799,7 +1800,7 @@
...
@@ -1799,7 +1800,7 @@
"\"\"\""
"\"\"\""
]
]
},
},
"execution_count":
95
,
"execution_count":
24
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -1828,157 +1829,155 @@
...
@@ -1828,157 +1829,155 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 157,
"execution_count": 43,
"metadata": {},
"metadata": {
"hideCode": true
},
"outputs": [
"outputs": [
{
{
"data": {
"name": "stdout",
"text/plain": [
"output_type": "stream",
"['Package Version ',\n",
"text": [
" '---------------------- -------------------',\n",
"### <> IPython == 7.12.0 ##\n",
" 'alembic 1.3.3 ',\n",
" - IPython.core.release == 7.12.0\n",
" 'asn1crypto 1.3.0 ',\n",
"### <> OpenSSL == 19.0.0 ##\n",
" 'async-generator 1.10 ',\n",
" - OpenSSL.version == 19.0.0\n",
" 'attrs 19.3.0 ',\n",
"### <> PIL == 7.0.0 ##\n",
" 'backcall 0.1.0 ',\n",
" - PIL.Image == 7.0.0\n",
" 'beautifulsoup4 4.6.3 ',\n",
" - PIL._version == 7.0.0\n",
" 'bleach 3.1.0 ',\n",
"### <> _cffi_backend == 1.13.2 ##\n",
" 'blinker 1.4 ',\n",
"### <> _csv == 1.0 ##\n",
" 'bokeh 0.12.16 ',\n",
"### <> _ctypes == 1.1.0 ##\n",
" 'certifi 2020.4.5.1 ',\n",
"### <> _curses == b'2.2' ##\n",
" 'certipy 0.1.3 ',\n",
"### <> _decimal == 1.70 ##\n",
" 'cffi 1.13.2 ',\n",
"### <> argparse == 1.1 ##\n",
" 'chardet 3.0.4 ',\n",
"### <> asn1crypto == 1.3.0 ##\n",
" 'cloudpickle 0.5.6 ',\n",
" - asn1crypto.version == 1.3.0\n",
" 'conda 4.8.2 ',\n",
"### <> backcall == 0.1.0 ##\n",
" 'conda-package-handling 1.6.0 ',\n",
"### <> certifi == 2020.04.05.1 ##\n",
" 'cryptography 2.5 ',\n",
"### <> cffi == 1.13.2 ##\n",
" 'cycler 0.10.0 ',\n",
"### <> chardet == 3.0.4 ##\n",
" 'Cython 0.28.5 ',\n",
" - chardet.version == 3.0.4\n",
" 'cytoolz 0.10.1 ',\n",
"### <> cryptography == 2.5 ##\n",
" 'dask 2.11.0 ',\n",
" - cryptography.__about__ == 2.5\n",
" 'decorator 4.4.1 ',\n",
"### <> csv == 1.0 ##\n",
" 'defusedxml 0.6.0 ',\n",
"### <> ctypes == 1.1.0 ##\n",
" 'dill 0.2.9 ',\n",
"### <> cycler == 0.10.0 ##\n",
" 'entrypoints 0.3 ',\n",
"### <> dateutil == 2.8.1 ##\n",
" 'fastcache 1.1.0 ',\n",
"### <> decimal == 1.70 ##\n",
" 'gmplot 1.2.0 ',\n",
"### <> decorator == 4.4.1 ##\n",
" 'gmpy2 2.1.0b1 ',\n",
"### <> distutils == 3.6.4 ##\n",
" 'h5py 2.7.1 ',\n",
"### <> idna == 2.9 ##\n",
" 'hide-code 0.5.3 ',\n",
" - idna.idnadata == 12.1.0\n",
" 'idna 2.9 ',\n",
" - idna.package_data == 2.9\n",
" 'imageio 2.8.0 ',\n",
"### <> ipaddress == 1.0 ##\n",
" 'inflect 4.0.0 ',\n",
"### <> ipykernel == 5.1.4 ##\n",
" 'ipykernel 5.1.4 ',\n",
" - ipykernel._version == 5.1.4\n",
" 'ipython 7.12.0 ',\n",
"### <> ipython_genutils == 0.2.0 ##\n",
" 'ipython-genutils 0.2.0 ',\n",
" - ipython_genutils._version == 0.2.0\n",
" 'ipywidgets 7.2.1 ',\n",
"### <> ipywidgets == 7.2.1 ##\n",
" 'isoweek 1.3.3 ',\n",
" - ipywidgets._version == 7.2.1\n",
" 'jaraco.itertools 5.0.0 ',\n",
"### <> jedi == 0.16.0 ##\n",
" 'jedi 0.16.0 ',\n",
"### <> json == 2.0.9 ##\n",
" 'Jinja2 2.11.0 ',\n",
"### <> jupyter_client == 6.0.0 ##\n",
" 'json5 0.8.5 ',\n",
" - jupyter_client._version == 6.0.0\n",
" 'jsonschema 3.0.2 ',\n",
"### <> jupyter_core == 4.6.3 ##\n",
" 'jupyter 1.0.0 ',\n",
" - jupyter_core.version == 4.6.3\n",
" 'jupyter-client 6.0.0 ',\n",
"### <> kiwisolver == 1.1.0 ##\n",
" 'jupyter-console 6.1.0 ',\n",
"### <> logging == 0.5.1.2 ##\n",
" 'jupyter-core 4.6.3 ',\n",
"### <> matplotlib == 2.2.3 ##\n",
" 'jupyter-telemetry 0.0.4 ',\n",
" - matplotlib.backends.backend_agg == 2.2.3\n",
" 'jupyterhub 0.8.1 ',\n",
"### <> numexpr == 2.6.9 ##\n",
" 'jupyterlab 1.2.5 ',\n",
"### <> numpy == 1.15.2 ##\n",
" 'jupyterlab-server 1.0.6 ',\n",
" - numpy.core == 1.15.2\n",
" 'kiwisolver 1.1.0 ',\n",
" - numpy.core.multiarray == 3.1\n",
" 'llvmlite 0.23.0 ',\n",
" - numpy.lib == 1.15.2\n",
" 'Mako 1.1.0 ',\n",
" - numpy.linalg._umath_linalg == b'0.1.5'\n",
" 'MarkupSafe 1.1.1 ',\n",
" - numpy.matlib == 1.15.2\n",
" 'matplotlib 2.2.3 ',\n",
"### <> optparse == 1.5.3 ##\n",
" 'mistune 0.8.4 ',\n",
"### <> pandas == 0.22.0 ##\n",
" 'more-itertools 8.2.0 ',\n",
" - pandas._libs.json == 1.33\n",
" 'mpmath 1.1.0 ',\n",
"### <> parso == 0.6.0 ##\n",
" 'nbconvert 5.6.1 ',\n",
"### <> patsy == 0.5.1 ##\n",
" 'nbformat 5.0.4 ',\n",
" - patsy.version == 0.5.1\n",
" 'nbgit 0.0.1 ',\n",
"### <> pexpect == 4.8.0 ##\n",
" 'networkx 2.4 ',\n",
"### <> pickleshare == 0.7.5 ##\n",
" 'notebook 6.0.3 ',\n",
"### <> platform == 1.0.8 ##\n",
" 'numba 0.38.1 ',\n",
"### <> prompt_toolkit == 3.0.3 ##\n",
" 'numexpr 2.6.9 ',\n",
"### <> ptyprocess == 0.6.0 ##\n",
" 'numpy 1.15.2 ',\n",
"### <> pygments == 2.5.2 ##\n",
" 'oauthlib 3.0.1 ',\n",
"### <> pyparsing == 2.4.6 ##\n",
" 'olefile 0.46 ',\n",
"### <> pytz == 2019.3 ##\n",
" 'packaging 20.1 ',\n",
"### <> re == 2.2.1 ##\n",
" 'pamela 1.0.0 ',\n",
"### <> requests == 2.23.0 ##\n",
" 'pandas 0.22.0 ',\n",
" - requests.__version__ == 2.23.0\n",
" 'pandocfilters 1.4.2 ',\n",
" - requests.packages.chardet == 3.0.4\n",
" 'parso 0.6.0 ',\n",
" - requests.packages.chardet.version == 3.0.4\n",
" 'patsy 0.5.1 ',\n",
" - requests.packages.idna == 2.9\n",
" 'pdfkit 0.6.1 ',\n",
" - requests.packages.idna.idnadata == 12.1.0\n",
" 'pexpect 4.8.0 ',\n",
" - requests.packages.idna.package_data == 2.9\n",
" 'pickleshare 0.7.5 ',\n",
" - requests.packages.urllib3 == 1.25.7\n",
" 'Pillow 7.0.0 ',\n",
" - requests.packages.urllib3.packages.six == 1.12.0\n",
" 'pip 20.0.2 ',\n",
" - requests.utils == 2.23.0\n",
" 'prometheus-client 0.7.1 ',\n",
"### <> scipy == 1.1.0 ##\n",
" 'prompt-toolkit 3.0.3 ',\n",
" - scipy._lib.decorator == 4.0.5\n",
" 'protobuf 3.11.3 ',\n",
" - scipy._lib.six == 1.2.0\n",
" 'ptyprocess 0.6.0 ',\n",
" - scipy.fftpack._fftpack == b'$Revision: $'\n",
" 'pycosat 0.6.3 ',\n",
" - scipy.fftpack.convolve == b'$Revision: $'\n",
" 'pycparser 2.19 ',\n",
" - scipy.integrate._dop == b'$Revision: $'\n",
" 'pycurl 7.43.0.1 ',\n",
" - scipy.integrate._ode == $Id$\n",
" 'Pygments 2.5.2 ',\n",
" - scipy.integrate._odepack == 1.9 \n",
" 'PyJWT 1.7.1 ',\n",
" - scipy.integrate._quadpack == 1.13 \n",
" 'pyOpenSSL 19.0.0 ',\n",
" - scipy.integrate.lsoda == b'$Revision: $'\n",
" 'pyparsing 2.4.6 ',\n",
" - scipy.integrate.vode == b'$Revision: $'\n",
" 'pyrsistent 0.15.7 ',\n",
" - scipy.interpolate._fitpack == 1.7 \n",
" 'PySocks 1.7.1 ',\n",
" - scipy.interpolate.dfitpack == b'$Revision: $'\n",
" 'python-dateutil 2.8.1 ',\n",
" - scipy.linalg == 0.4.9\n",
" 'python-editor 1.0.4 ',\n",
" - scipy.linalg._fblas == b'$Revision: $'\n",
" 'python-json-logger 0.1.11 ',\n",
" - scipy.linalg._flapack == b'$Revision: $'\n",
" 'python-oauth2 1.1.1 ',\n",
" - scipy.linalg._flinalg == b'$Revision: $'\n",
" 'pytz 2019.3 ',\n",
" - scipy.ndimage == 2.0\n",
" 'PyWavelets 1.1.1 ',\n",
" - scipy.optimize._cobyla == b'$Revision: $'\n",
" 'PyYAML 5.3 ',\n",
" - scipy.optimize._lbfgsb == b'$Revision: $'\n",
" 'pyzmq 17.1.2 ',\n",
" - scipy.optimize._minpack == 1.10 \n",
" 'qtconsole 4.6.0 ',\n",
" - scipy.optimize._nnls == b'$Revision: $'\n",
" 'requests 2.23.0 ',\n",
" - scipy.optimize._slsqp == b'$Revision: $'\n",
" 'rpy2 2.9.4 ',\n",
" - scipy.optimize.minpack2 == b'$Revision: $'\n",
" 'ruamel-yaml 0.15.80 ',\n",
" - scipy.signal.spline == 0.2\n",
" 'ruamel.yaml 0.16.5 ',\n",
" - scipy.sparse.linalg.eigen.arpack._arpack == b'$Revision: $'\n",
" 'scikit-image 0.14.3 ',\n",
" - scipy.sparse.linalg.isolve._iterative == b'$Revision: $'\n",
" 'scikit-learn 0.19.2 ',\n",
" - scipy.special.specfun == b'$Revision: $'\n",
" 'scipy 1.1.0 ',\n",
" - scipy.stats.mvn == b'$Revision: $'\n",
" 'seaborn 0.8.1 ',\n",
" - scipy.stats.statlib == b'$Revision: $'\n",
" 'Send2Trash 1.5.0 ',\n",
"### <> seaborn == 0.8.1 ##\n",
" 'setuptools 45.2.0.post20200209',\n",
" - seaborn.external.husl == 2.1.0\n",
" 'sh 1.12.14 ',\n",
" - seaborn.external.six == 1.10.0\n",
" 'simplegeneric 0.8.1 ',\n",
"### <> six == 1.14.0 ##\n",
" 'six 1.14.0 ',\n",
"### <> socks == 1.7.1 ##\n",
" 'SQLAlchemy 1.2.18 ',\n",
"### <> statsmodels == 0.9.0 ##\n",
" 'statsmodels 0.9.0 ',\n",
" - statsmodels.__init__ == 0.9.0\n",
" 'sympy 1.1.1 ',\n",
"### <> traitlets == 4.3.3 ##\n",
" 'terminado 0.8.3 ',\n",
" - traitlets._version == 4.3.3\n",
" 'testpath 0.4.4 ',\n",
" - urllib.request == 3.6\n",
" 'toolz 0.10.0 ',\n",
"### <> urllib3 == 1.25.7 ##\n",
" 'tornado 6.0.3 ',\n",
" - urllib3.packages.six == 1.12.0\n",
" 'tqdm 4.42.0 ',\n",
"### <> zlib == 1.0 ##\n",
" 'traitlets 4.3.3 ',\n",
"### <> zmq == 17.1.2 ##\n",
" 'tzlocal 2.0.0 ',\n",
" - zmq.sugar == 17.1.2\n",
" 'urllib3 1.25.7 ',\n",
" - zmq.sugar.version == 17.1.2\n"
" 'vincent 0.4.4 ',\n",
]
" 'wcwidth 0.1.8 ',\n",
" 'webencodings 0.5.1 ',\n",
" 'wheel 0.34.2 ',\n",
" 'widgetsnbextension 3.2.1 ',\n",
" 'xlrd 1.2.0 ',\n",
" 'zipp 2.1.0 ']"
]
},
"execution_count": 157,
"metadata": {},
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"all_packages =!pip list\n",
"list_import = sorted([name for name, module in sys.modules.items() \n",
"all_packages"
" if module is not None and hasattr(module,'__version__')])\n",
"for pkg in list_import :\n",
" try:\n",
" if '.' not in pkg : \n",
" print(f\"### <> {pkg} == {sys.modules[pkg].__version__} ##\")\n",
" else : print(f\" - {pkg} == {sys.modules[pkg].__version__}\")\n",
" except AttributeError: \n",
" pass"
]
]
}
}
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment