Files and packages
Your workspace folder, the files you drop in, and the packages you install with pip.
The workspace is a real directory, and your module runs with it as the working directory. Relative paths are relative to it:
<workspace>/
├── indicators/ strategies/ monitors/ apps/ your modules
├── data/ files you drop in
├── lib/ packages you pip install
└── requirements.txtimport pandas as pd
df = pd.read_csv("data/straddles.csv") # a file you dropped in
df.to_parquet("data/straddles.parquet") # and one you write backDrop files onto the workspace drawer in the Code panel and they land in
data/. A name that already exists is suffixed rather than replaced — silently
overwriting a file a running script is reading would change its results with
nothing to notice.
numpy and pandas ship with the platform. Anything else is yours to install,
from the same drawer or by listing it in requirements.txt. Packages go to
lib/, which is on sys.path ahead of the bundled ones — so a version you pin
wins, rather than your install quietly doing nothing. lib/ belongs to the
installer: saving, deleting, moving or creating anything in it by hand is
refused ("lib/ is managed by the package installer — install or remove
packages instead"). Install before you deploy: while a strategy or trading App
runs, packages can't change.
The workspace is the unit that moves. On a cloud machine it is a mounted volume, so every path above means the same thing there as it does locally.