Skip to main content

Wollok kernel for Jupyter

Project description

Python package

Wollok Kernel for Jupyter notebook

wollok_kernel is a Jupyter kernel implementation, started from a wrapper kernel.

Wollok Kernel Demo

💻 Installation

Pre-requisites

You need to install Python (3.7 or newer). If you don't have Python, the recommended option is installing it using the official site, and click on Download Python X.X.X (there a different options depending on your operating system).

python --version

If python3 --version works, you should use an alias or replace python with python3.

It is recommended to create a virtual environment:

python -m venv venv
source venv/bin/activate  # Linux/macOS
venv\Scripts\activate     # Windows

Install jupyter client, kernels system and notebooks infrastructure:

pip install jupyter ipykernel

Install Conda environment manager. Follow the instructions for your operating system.

Install Node & npm tools.

Wollok Kernel

Clone this repository:

git clone https://github.com/uqbar-project/wollok-jupyter-kernel # you can also use git@... option

Install Wollok Jupyter Kernel using conda:

cd ./wollok-jupyter-kernel/wollok_kernel
conda create -n wollok jupyter
conda init

Open a new terminal and run

conda activate wollok
cd ..
pip install .
jupyter kernelspec install . --sys-prefix --name wollok --replace

After downloading all the dependencies, you can check that Wollok kernel is successfully installed:

jupyter kernelspec list

You should see an output similar to the following:

Available kernels:
  python3    /path/to/venv/lib/python3.13/site-packages/ipykernel/resources
  wollok     /path/to/wollok-jupyter-kernel/venv/share/jupyter/kernels/wollok

VSCode

Install Jupyter extension in VSCode:

  • Open Extension Tab (⇧⌘X or Ctrl+Shift+X)
  • Look for "Jupyter"
  • Install Microsoft official extension

Install VSCode extension

Then you can create a New File... > Jupyter Notebook

New Jupyter Notebook File

And select kernel: click on the right side, on Select Kernel option > Jupyter Kernel > Wollok:

Install 02

👩‍💻 Contribution

🦄 Using Wollok kernel

  • Notebook: The New menu in the notebook should show an option for a Wollok notebook.
  • Console frontends: To use it with the console frontends, add --kernel wollok to their command line arguments.

Powered by Uqbar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wollok_kernel-1.4.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wollok_kernel-1.4-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file wollok_kernel-1.4.tar.gz.

File metadata

  • Download URL: wollok_kernel-1.4.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for wollok_kernel-1.4.tar.gz
Algorithm Hash digest
SHA256 655bc5586d9df57b69099955ccb7d9bcd9daa48cb871b83e755fe8fc4ca3ec07
MD5 a859beb3738688f1f75f12fc66397b7d
BLAKE2b-256 e80d5c6aefb72dc95ae2c9bd98df16f03f5c980a7ba10ea4afabd1d29b86965c

See more details on using hashes here.

File details

Details for the file wollok_kernel-1.4-py3-none-any.whl.

File metadata

  • Download URL: wollok_kernel-1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for wollok_kernel-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6e706a3dfabb89c570bb4d9ee188d4a8ee8e3e5c3d03dc08124791cfdf9d731f
MD5 0c96441ea3e82896fccde1875f9c9d65
BLAKE2b-256 76f3af72f5f1c6905e3342e21df0ffac2b1e18209913cbfa700499d4e0a9e2ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page