From dfe7aed66960dd14d155eb60c860f9dee611367b Mon Sep 17 00:00:00 2001 From: kungfujam Date: Mon, 28 Sep 2015 13:40:29 +0100 Subject: [PATCH 1/3] added ./ before virtualenv.py to allow copy and paste run. --- 00_Introduction.ipynb | 47 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/00_Introduction.ipynb b/00_Introduction.ipynb index 3b944b9..d36011f 100644 --- a/00_Introduction.ipynb +++ b/00_Introduction.ipynb @@ -39,7 +39,7 @@ "### Configuring virtual environment (the generic way)\n", "\n", " * `git clone https://github.com/pypa/virtualenv`\n", - " * Enter the cloned repository and type `virtualenv.py --python /usr/bin/python2.7 --no-site-packages ~/mlpractical`\n", + " * Enter the cloned repository and type `./virtualenv.py --python /usr/bin/python2.7 --no-site-packages ~/mlpractical`\n", " * Activate the environment by typing `source ~/mlpractical/bin/activate` (to leave the virtual environment one may type `decativate`). Environments need to be activated every time ones start the new session (unless you do this explicitly in the shell starting scripts, i.e. `~/.bashrc`).\n", "\n", "### Configuring virtual environment (more comfy DICE wrapper; ignore if you did the generic way above)\n", @@ -129,12 +129,53 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": { "collapsed": false, "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\u001b[H\u001b[2Jatlas_3_10_blas_threads_info:\n", + " libraries = ['tatlas']\n", + " library_dirs = ['/usr/lib64/atlas']\n", + " define_macros = [('HAVE_CBLAS', None), ('ATLAS_INFO', '\"\\\\\"3.10.1\\\\\"\"')]\n", + " language = c\n", + " include_dirs = ['/usr/include']\n", + "lapack_opt_info:\n", + " libraries = ['tatlas', 'tatlas', 'tatlas']\n", + " library_dirs = ['/usr/lib64/atlas']\n", + " define_macros = [('ATLAS_INFO', '\"\\\\\"3.10.1\\\\\"\"')]\n", + " language = f77\n", + " include_dirs = ['/usr/include']\n", + "blas_opt_info:\n", + " libraries = ['tatlas']\n", + " library_dirs = ['/usr/lib64/atlas']\n", + " define_macros = [('HAVE_CBLAS', None), ('ATLAS_INFO', '\"\\\\\"3.10.1\\\\\"\"')]\n", + " language = c\n", + " include_dirs = ['/usr/include']\n", + "openblas_info:\n", + " NOT AVAILABLE\n", + "openblas_lapack_info:\n", + " NOT AVAILABLE\n", + "atlas_3_10_threads_info:\n", + " libraries = ['tatlas', 'tatlas', 'tatlas']\n", + " library_dirs = ['/usr/lib64/atlas']\n", + " define_macros = [('ATLAS_INFO', '\"\\\\\"3.10.1\\\\\"\"')]\n", + " language = f77\n", + " include_dirs = ['/usr/include']\n", + "lapack_mkl_info:\n", + " NOT AVAILABLE\n", + "blas_mkl_info:\n", + " NOT AVAILABLE\n", + "mkl_info:\n", + " NOT AVAILABLE\n" + ] + } + ], "source": [ "%clear\n", "import numpy\n", From d595d690a85361c1116ffce4a1faa4706c26c064 Mon Sep 17 00:00:00 2001 From: kungfujam Date: Mon, 28 Sep 2015 13:42:31 +0100 Subject: [PATCH 2/3] clarify text --- 00_Introduction.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/00_Introduction.ipynb b/00_Introduction.ipynb index d36011f..c7f0a78 100644 --- a/00_Introduction.ipynb +++ b/00_Introduction.ipynb @@ -76,7 +76,7 @@ "\n", "#### OpenBlas\n", "\n", - "To install OpenBlas library run (replace first line to be the path to the directory where you installed OpenBlas):\n", + "To install OpenBlas library run (replace first line to be the path to the directory where you want to install OpenBlas):\n", "\n", "```\n", "OBDir=~/OpenBlas\n", From e19920ef863d7ef1dd44f56df472b6c950f8a166 Mon Sep 17 00:00:00 2001 From: kungfujam Date: Mon, 28 Sep 2015 13:48:43 +0100 Subject: [PATCH 3/3] Add clarification as to how to add to ~/.bashrc --- 00_Introduction.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/00_Introduction.ipynb b/00_Introduction.ipynb index c7f0a78..51b5b54 100644 --- a/00_Introduction.ipynb +++ b/00_Introduction.ipynb @@ -86,7 +86,7 @@ "make PREFIX=$OBDir/lib install\n", "```\n", "\n", - "Once OpenBLAS is finished compiling we need to ensure the compiled shared library files in the `lib` subdirectory are available to the shared library loader. This can be done by appending the absolute path to the `lib` subdirectory to the `LD_LIBRARY_PATH` environment variable. To ensure this changes persist we will change the bash start up file `~/.bashrc` by opening it in a text editor and adding the following line\n", + "Once OpenBLAS is finished compiling we need to ensure the compiled shared library files in the `lib` subdirectory are available to the shared library loader. This can be done by appending the absolute path to the `lib` subdirectory to the `LD_LIBRARY_PATH` environment variable. To ensure this changes persist we will change the bash start up file `~/.bashrc` by opening it in a text editor (e.g. by running `gedit ~/.bashrc`) and adding the following line\n", "\n", "```\n", "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OBDir/lib\n",