Various utilities that function as the backbone for the website

Declaring Version Information

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

get_version[source]

get_version(lib)

Returns version of lib, can be either a str representation or the module itself

An example with a str:

get_version('fastai')
'2.2.5'

And an example with the module itself:

import fastai
get_version(fastai)
'2.2.5'

state_versions[source]

state_versions(*libs)

State all the versions currently installed from libs in Markdown

Example usage:

As strings:

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.2.5
  • fastcore : 1.3.19

As direct modules:

import fastai, fastcore
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.2.5
  • fastcore : 1.3.19

state_versions([fastai, fastcore])
/mnt/d/lib/python3.7/site-packages/ipykernel_launcher.py:17: DeprecationWarning: Passing in a list of libraries will be deprecated, you should pass them directly such as:
        `state_versions(fastai, fastcore)`
        or:
        `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.2.5
  • fastcore : 1.3.19