Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 2.76 KB

ReplCustom.md

File metadata and controls

40 lines (30 loc) · 2.76 KB


Return to Index

Creating a Custom Repl to Run Qiskit [WIP]

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.

image

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

Learning Repl and Nix

Blog Posts

Written Guides

Video Guides

  • 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.