Skip to content

Commit

Permalink
Add lua support
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisSimon committed Jul 1, 2024
1 parent 4f013ec commit 3a3852d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 5 deletions.
48 changes: 48 additions & 0 deletions Project/examples/lua.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Lua Example"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "01J1Q58TJXV7N4TWTP9Z9W5MKY",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello\tBob\n"
]
}
],
"source": [
"function sayHello(name)\n",
" print(\"Hello\", name)\n",
"end\n",
"\n",
"sayHello(\"Bob\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Lua",
"language": "lua",
"name": "lua"
},
"language_info": {
"file_extension": ".lua",
"mimetype": "text/x-lua",
"name": "lua",
"version": "5.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
13 changes: 8 additions & 5 deletions deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ RUN apt install -y \
golang \
libzmq3-dev libsodium23 pkg-config python3-aiozmq \
lldb-15 rust-all \
openjdk-8-jdk
openjdk-8-jdk \
lua-any lua-argparse lua-check lua-cjson lua-doc lua-event lua-filesystem lua-http lua-json lua-posix lua-socket lua-system lua5.4 luadoc luajit

# rust-lldb

# fix LLDB
Expand Down Expand Up @@ -101,14 +103,15 @@ RUN pip install ipywidgets
RUN pip install bash_kernel; python3 -m bash_kernel.install
RUN npm install -g tslab; tslab install;
RUN cpan -T Alien::ZMQ::latest; cpan -T Devel::IPerl; iperl kernel;
RUN pip3 install jupyter-c-kernel; install_c_kernel;
RUN pip install jupyter-c-kernel; install_c_kernel;
RUN pip install ilua;

ADD Sources/kernel /extensions/kernel
RUN pip3 install /extensions/kernel/echo_kernel
RUN pip3 install /extensions/kernel/swift_kernel
RUN pip install /extensions/kernel/echo_kernel
RUN pip install /extensions/kernel/swift_kernel

RUN echo 'PATH="$PATH:/root/.cargo/bin"' >> /root/.bashrc
RUN cargo install evcxr_jupyter; /root/.cargo/bin/evcxr_jupyter --install;
#RUN cargo install evcxr_jupyter; /root/.cargo/bin/evcxr_jupyter --install;
#cp -r /root/.local/share/jupyter/kernels/rust /extensions/kernel/rust

# Setting the startp
Expand Down

0 comments on commit 3a3852d

Please sign in to comment.