--- title: Utility Functions keywords: fastai sidebar: home_sidebar summary: "Various utilities that function as the backbone for the website" description: "Various utilities that function as the backbone for the website" nb_path: "nbs/00_utils.ipynb" ---
{% raw %}
{% endraw %}

Declaring Version Information

Simple methods to grab and state libraries you are using for a tutorial

{% raw %}

get_version[source]

get_version(lib:str)

Returns version of lib

{% endraw %} {% raw %}
{% endraw %} {% raw %}

state_versions[source]

state_versions(libs:list=[])

State all the versions currently installed from libs in Markdown

{% endraw %} {% raw %}
{% endraw %}

Example usage:

{% raw %}
state_versions(['fastai', 'fastcore'])

This article is also a Jupyter Notebook available to be run from the top down. There will be code snippets that you can then run in any environment.

Below are the versions of fastai and fastcore currently running at the time of writing this:

  • fastai: 2.1.9
  • fastcore: 1.3.12

{% endraw %}