Repository navigation
Projects and Sandboxing
Imladris distinguishes between single-document rapid drafting and multi-file computational research projects, giving users maximum speed for prose and rigorous hermetic isolation for data science.
Clicking "New Project or Document…" (Ctrl+N or top-left Imladris brand menu) opens the Creation Modal with specialized workspace and document targets:
graph TD
Modal["Creation Modal (Ctrl+N)"]
subgraph MultiFile["Workspace Projects"]
P_Std["1. Standard Project (.mallorn + .Rproj)"]
P_Box["2. Sandboxed Project (.imladris-env / renv / .venv)"]
P_Rproj["3. RStudio Project (.Rproj Scaffold Dialog)"]
end
subgraph SingleFile["Fast-Path Documents & Notebooks"]
F_Qmd["4. Quarto Document (.qmd)"]
F_Rmd["5. R Markdown (.Rmd)"]
F_Ipynb["6. Jupyter Notebook (.ipynb)"]
F_Md["7. Simple Markdown (.md)"]
F_R["8. R Script (.R)"]
F_Py["9. Python Script (.py)"]
F_Shiny["10. R Shiny Web App (app.R)"]
F_Html["11. HTML5 Document (.html)"]
end
Modal --> MultiFile
Modal --> SingleFile
-
Single-File Fast-Path (
.md,.html): Apostrophe-style distraction-free writer mode. No background R or Python interpreters are spawned, keeping memory usage minimal. -
Standalone Notebooks (
.qmd,.Rmd,.ipynb): Launches the 4-quadrant RStudio workbench mode with active editor, environment inspector, console, Arekyer Galaxy Bridge, and files pane. -
Multi-File Workspace Projects &
.RprojScaffolds: Creates a dedicated project directory with.Rprojand.mallornmanifests, scaffoldedREADME.md,data/folder, and optionalrenv/.venv/ Git initialization.
| Characteristic | Standard Project | Sandboxed Project (.imladris-env) |
|---|---|---|
| R Packages | Global user library (~/R/x86_64-pc-linux-gnu-library/) |
Project-local renv library (renv/library/) |
| Python Packages | System or user site-packages (~/.local/lib/python3.X/) |
Project-local virtual environment (.venv/) |
| Portability Guarantee | 🛡️ 100% Reproducible across machines | |
| Status Badge |
[System Libraries - Non-Portable] (Amber) |
[Sandboxed - Reproducible] (Green) |
| Lockfiles | None (unless manually initialized) | Automatic renv.lock and requirements.txt
|
| Export Confirmation | Prompts confirmation alert on export | One-click export to RStudio or Jupyter |
When a Sandboxed Project is created or opened:
-
R Sandboxing (
renv):-
SandboxControllergenerates a.Rprofileinside the project root that automatically bootstrapsrenv. - Packages installed via the Packages Ribbon Bar or
install.packages()are isolated insiderenv/library/. - On document save or package installation,
renv.lockis automatically synchronized.
-
-
Python Sandboxing (
.venv):-
SandboxControllerrunspython3 -m venv .venvinside the project root. - All interactive commands dispatched via the REPL or code chunks use
.venv/bin/python. - Package installations via
uvorpipare pinned inrequirements.txt.
-
Warning
Exporting a Standard Project triggers a confirmation modal warning that external machines might lack required packages. To ensure your scientific findings are reproducible by peer reviewers, always use Sandboxed Projects.
In statistical computing, broken file paths (data/samples.csv not found) are a common pain point when running chunks from subfolders.
Imladris enforces strict project-root locking across all subsystems:
- Files Pane: Always displays the project root tree.
-
R Subprocess: Dispatches
setwd("/path/to/project_root")upon session connection. -
Python Subprocess: Dispatches
os.chdir("/path/to/project_root")upon session connection. -
Subprocess Spawner: Every shell command or script runner executes with
launcher.set_cwd(project_root).
Relative paths like read.csv("data/experiment.csv") or pd.read_parquet("data/features.parquet") consistently resolve to the project root across all chunks and console sessions.
Imladris IDE (v0.45.0) • Core licensed under Apache License 2.0 (Apache-2.0) (Hybrid Open-Core) • Built with Vala, GTK4, Libadwaita, WebKitGTK 6.0 & Papirus Icons (GPL-3.0-or-later).