A Jupyter notebook kernel for CFML powered by Commandbox
Project description
Jupyter Kernel for CFML
This a Jupyter Kernel for CFML powered by the CommandBox REPL. It should work on Window, Linux, and MacOS but I have not done extensive testing on them. You can also try it out on mybinder.org.
It is based on the concept of a Python wrapper kernel. It is a work it progress so likley has some functionality missing that other Kernels may provide. I am new to Python so there are probably a lot of things that can be improved here.
Requirements
Python
If you want to run it locally you will need to have Python installed. I installed it on Windows using the Chocolatey package manager.
choco install python
CommandBox
You will also need to make sure CommandBox is installed and in the system path
.
Jupyter
You will need to have Jupyter installed or you can also use the VS Code Jupyter notebook extension.
Docker
You can also run it with Docker if you do not want to mess around with installing dependencies. There is a docker image associated with the repository that can be utilized for running it was well. See the other options below.
Clone the repo
git clone https://github.com/jsteinshouer/cfml-jupyter-kernel.git
Install Kernel
pip install ./cfml-jupyter-kernel
python -m cfml_kernel.cfscript.install
python -m cfml_kernel.cfml.install
If you want to develop on the Kernel you can add the -e
flag to make it editable.
pip install -e ./cfml-jupyter-kernel
python -m cfml_kernel.cfscript.install
python -m cfml_kernel.cfml.install
Run it
I prefer to use the VS Code Jupyter notebook extension to run my notebooks but if you installed Jupyter
to can run it using this command:
jupyter notebook
Run on mybinder.org
You can try it out and create CFML notebooks using this link:
Github Codespaces / Dev Container
You can fork this repo and run it with Github Codespaces or clone the repo and run it locally with the VS Code Dev Containers extension.
Running locally with Docker
If you have cloned the repo you can just use docker compose
to run it.
docker compose up
Go to http://127.0.0.1:8888/lab?token=123 to access the Jupyter Lab application.
However there is a pre-built image you can use instead. This will run the Jupyter lab application using the pre-built image.
docker run -v ${PWD}:/home/jovyan/work -p 8888:8888 -e JUPYTER_TOKEN=123 ghcr.io/jsteinshouer/cfml-jupyter:latest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cfml_kernel-1.2.1.tar.gz
.
File metadata
- Download URL: cfml_kernel-1.2.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76931dcd03b3acde1622aa4db4ecde40a0b95d82feb49795d1bb5310d46336a2 |
|
MD5 | 0e919934695ad60145c310379bbb26a7 |
|
BLAKE2b-256 | 235c306335a9184e9e832c5ff92a00cf1c56dd7741179a6d361ad378290a66b0 |
File details
Details for the file cfml_kernel-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: cfml_kernel-1.2.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff0233c196e936b459a98392e736d579dbdea1823cefc523bcb639d4eee54bb |
|
MD5 | d7b5142d6677b81170b79ca79462d814 |
|
BLAKE2b-256 | b1be395ed99a0ba6dcef5fe132ad766563af88e1d3167824d3913d96ea93426b |