Links

Terminal

Opening a Lair creates a new Unix terminal session connected to the remote instance of your Lair’s file system. You can use standard bash commands to navigate the file system or execute processes.

Using your Lair’s terminal

The terminal is located on the bottom of your Lair editor. On initialization, your terminal’s current directory will be your Lair’s root directory.
Your terminal is connected to your Lair’s remote file system, not the files on your local machine. When using the WayScript desktop app, if your terminal does not reflect file changes made locally, you must first “Push” your file system. See File system for more details on file sync.
You can use your Lair’s terminal is to execute processes, create files and directories, and much more. For example, you can run a Python file in your Lair directory.
# my-file.py
print('Hello world!')
# Terminal connected to my-lair-a
~/my-lair-a $ python my-file.py
Hello world!
Exiting the Lair editor will terminate the terminal session and any processes that have been executed synchronously or asynchronously through the terminal.

Terminal considerations

  • Pressing ▶ on a code file will enter the respective default run command, e.g. python my-file.py, into the Lair terminal.
  • Each Lair terminal can only access the files within the current Lair directory. See File system for more details.
  • Terminal sessions use independent containerized environments, so changes made to the environment will not persist across sessions or within your Lair environment. For example, installed Python libraries (through pip) will be discarded on session close. However, you can use standard requirements.txt or package.json dependency files to load packages on session start; see Hosted environments for more details.
  • The Lair terminal currently does not render terminal programs or abstractions such as vim . Please use these at your own risk.

Troubleshooting Reported Issues

Tensorflow:
If trying to install Tensorflow, use the following install command: pip install tensorflow --no-cache-dir