Opening a Lair creates a new Unix terminal session connected to the remote instance of your Lair’s file system. You can use standard
bashcommands to navigate the file system or execute processes.
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.
# Terminal connected to my-lair-a
~/my-lair-a $ python my-file.py
Exiting the Lair editor will terminate the terminal session and any processes that have been executed synchronously or asynchronously through the terminal.
- 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
package.jsondependency 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.
If trying to install Tensorflow, use the following install command:
pip install tensorflow --no-cache-dir