How To Install Th?

How To Install Th?

th

REPL Wrapper Package for Torch Framework

Maintainer: Debian Science Maintainers



Section: interpreters

Install th

  • Debian apt-get install torch-trepl Click to copy
  • Ubuntu apt-get install torch-trepl Click to copy
  • Kali Linux apt-get install torch-trepl Click to copy

torch-trepl

REPL Wrapper Package for Torch Framework

A pure Lua REPL (Read,Eval,Print-Loop) for LuaJIT, with heavy support for Torch types. It uses Readline for tab completion. This package also installs command line frontend `th`, which comes packed with all these features: * Tab-completion on nested namespaces * Tab-completion on disk files (when opening a string) * History * Pretty print (table introspection and coloring) * Auto-print after eval (can be stopped with ;) * Each command is profiled, timing is reported * No need for '=' to print * Easy help with: `? funcname` * Self help: `?` * Shell commands with: $ cmd (example: `$ ls`) * Print all user globals with `who()` * Import a package's symbols globally with `import(package)` * Require is overloaded to provide relative search paths: `require('./mylocallib/')` * [Optional] strict global namespace monitoring * [Optional] async repl

Installation of latest th command is available for Debian, Ubuntu and Kali. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.