Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 2.2 KB

README.md

File metadata and controls

35 lines (24 loc) · 2.2 KB

License: Artistic-2.0 rpmjk -> DH

raku-Physics-Measure-Jupyter

Jupyter workbook examples for raku Physics::Measure

A set of SI, Imperial and US Unit classes that are employed as Measure objects having value, units and error that can act as operands in most calculations. Some prefix and physical constants included where needed.

Docker Instructions

To use on Docker:

  • docker run -it --platform linux/amd64 -p 8888:8888 librasteve/rakudo:rpmjk-amd64
  • jupyter-notebook --port=8888 --no-browser --allow-root

running on root is NOT RECOMMENDED, this is NOT SUITABLE for public facing servers

copy config to ~/.jupyter/jupyter_notebook_config.json to disable password (also very insecure)

go jupyter notebook --generate-config, then c.NotebookApp.quit_button = False to disable Quit button

detach gracefully with Ctrl-P, Ctrl-Q if you want the server to outlive your terminal

on Apple M-series silicon, Docker Desktop will run it on rosetta (settings)

Installation Instructions

To install on your local machine:

  • zef install --verbose https://github.com/librasteve/raku-Physics-Measure.git
  • do the Quick Start here Brian Duggan perl6 jupyter-notebook at https://github.com/bduggan/p6-jupyter-kernel
  • git clone https://github.com/librasteve/raku-Physics-Measure-Jupyter.git this repo on your machine and cd raku-Physics-Measure-Jupyter into the new dir
  • command line jupyter-notebook - this will open a jupyter-notebook session in your browser
  • in the browser, go to /eg and click Synopsis.ipynb, then Run each cell - explore & enjoy!

Inspired by

Copyright (c) Henley Cloud Consulting Ltd. 2021-2023