Here I outline the steps I've taken to create a custom repl environment for running the latest version of Qiskit.
The existing Repl Python template has several issues, so we can't rely on it. For starters, it doesn't come with the latest version of Python.
Repl runs on a Linux distribution called NixOS, which uses the Nix package and configuration manager to enable reproducible environments we can run across different machines.
All Nix Repls have two configuration files: replit.nix
, and .replit
.
To access these files, click the three dots on the file tree and select Show hidden files
.
The .replit
file controls multiple aspects of your Repl's behavior including the run command, LSP (Language Server Protocol), and more. It follows the toml configuration format.
The replit.nix
file
- How we went from supporting 50 languages to all of them
- All New Repls are Powered By Nix
- Will Nix Overtake Docker?
- Super Colliding Nix Stores: Nix Flakes for Millions of Developers
- Replit & Nix — Replit tutorial section on Replit & Nix
- Getting started with Nix — Replit & Nix getting started guide
- Building with Nix on Replit — Deploy a production web stack on Replit with Nix
- Nix Pills — Guided introduction to Nix
- Nix Package Manager Guide — A comprehensive guide of the Nix Package Manager
- A tour of Nix — Learn the nix language itself
- Configuring a Repl — How to configure the
.replit
file
- Nixology — A series of videos introducing Nix in a practical way
- Taking the Nix pill — An introduction to what Nix is, how it works, and a walkthrough of publishing several new languages to Replit within an hour.
- Nix: A Deep Dive — A deep dive on Nix: what Nix is, why you should use it, and how it works.