O'Reilly logo

Scalable Cloud Ops with Fugue by Josha Stella

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code Reuse with Modules

Modules form the basic unit of code reuse in Ludwig. If we have a bunch of functionality that we want to make commonly available elsewhere, whether as part of a single compositions or more generally in the style of a library, a module lets us package it all up under a unified namespace so that it can be conveniently imported and used by a consumer.

Modules consist of regular Ludwig source files. A library, like the Fugue Standard Library, which you can examine in the Fugue online documentation,[36] is just a collection of Ludwig modules.

When we write Ludwig code that we want to package up in a module, we just put it all in a single file and name it with the desired module name. Modules are named by the file that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required