diff --git a/module4/ressources/resources.html b/module4/ressources/resources.html index 3bb5d77082d5fe3a9a5ddc59277ba515c1e9b637..3651f60946b6b237e8e8da5f1851f4e7e255d30f 100644 --- a/module4/ressources/resources.html +++ b/module4/ressources/resources.html @@ -3,22 +3,22 @@

Table of Contents

-
-

Getting information about your Git repository

-
+
+

Getting information about your Git repository

+

When taking notes, it may be difficult to remember which version of the code or of a file was used. This is what version control is useful @@ -41,7 +41,7 @@ Date: Tue Sep 4 12:45:43 2018 +0200

-
git status
+
git status -u
 
@@ -71,6 +71,11 @@ Untracked files: no changes added to commit (use "git add" and/or "git commit -a") +

+Note: the -u indicates that git should also display the contents of +new directories it did not previously know about. +

+

Then, I often include commands at the end of my notebook indicating how to commit the results (adding the new files, committing with a @@ -104,13 +109,13 @@ is the price to pay for running git from within the notebook itself.

-
-

Getting information about Python(3) libraries

-
+
+

Getting information about Python(3) libraries

+
-
-

Getting the list of installed packages and their version

-
+
+

Getting the list of installed packages and their version

+

This topic is discussed on StackOverflow. When using pip (the Python package installer) within a shell command, it is easy to query the @@ -180,9 +185,9 @@ Requires: patsy, pandas

-
-

How to list imported modules?

-
+
+

How to list imported modules?

+

Without resorting to pip (that will list all available packages), you may want to know which modules are loaded in a Python session as well @@ -243,9 +248,9 @@ zlib 1.0

-
-

Setting up an environment with pip

-
+
+

Setting up an environment with pip

+

The easiest way to go is as follows:

@@ -263,9 +268,9 @@ dynamic libraries that are wrapped by Python though.
-
-

Getting information about R libraries

-
+
+

Getting information about R libraries

+

The best way seems to be to rely on the devtools package.