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.3.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.3-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wollok_kernel-1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d31ef408407554ff1ca40bb19d5053e8a8d215f740b2188fdeb6bb2f280ee5cc
MD5 09d4eb37b6f3b064909121f54420d2f2
BLAKE2b-256 584fde4af56a46fa7a0c14a0ba19e3f6cbc5af60b408c52ad4c84d6abf68fb34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wollok_kernel-1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d33e93afba65ae663155fc42b19a8e1a7482b5241e01dde846111ebfb29a3c1f
MD5 3c0f54f110b45b1ef45db28c8e4922b3
BLAKE2b-256 4943ce3cec17d92c25206a9a97dac12945d2eccd9d658eae7322eb4e937c134b

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