Comments (22)
Then we could also check this works well with another xeus kernel such as https://github.com/DerThorsten/xeus-wren (if it can be compiled to wasm)
It should compile to wasm, it is very simple plain C (this is why I choose this lang.)
from xeus-lua-kernel.
Before tackling the steps above, we could actually make a first release of jupyterlite-xeus-lua
. The repo is looking pretty good so this might happen very soon.
That would be a good way to make sure we can use the releaser for that, check all files are correctly bundled (#18 already helps with this) and setup the process for the next releases.
@DerThorsten I've added you as owner on https://pypi.org/project/jupyterlite-xeus-lua/
We can use the Jupyter Releaser to publish the extension to PyPI and npm: https://jupyter-releaser.readthedocs.io/en/latest/get_started/making_first_release.html#set-up
from xeus-lua-kernel.
Then we could also check this works well with another xeus kernel such as https://github.com/DerThorsten/xeus-wren (if it can be compiled to wasm)
from xeus-lua-kernel.
jupyterlite-xeus-lua
would live in its own repo, for example https://github.com/jupyterlite/xeus-lua-kernel, and would depend on the@jupyterlite/xeus-kernel
packages. It would also have the tools (Dockerfile
) to create the wasm file, and would specify it as a parameter
Can you elaborate what you mean with "specify it as a parameter".
So https://github.com/jupyterlite/xeus-lua-kernel
and https://github.com/jupyterlite/xeus-wren-kernel
would each contain their own Dockerfile but the logic to trigger the Dockerbuild is in https://github.com/jupyterlite/xeus-kernel
?
from xeus-lua-kernel.
btw the wren kernel is atm in https://github.com/DerThorsten/jupyterlite_xeus_wren
from xeus-lua-kernel.
If all we need is the name of the path to the wasm file, it could be passed in the instantiation options here:
from xeus-lua-kernel.
The xeus-lua
and xeus-wren
packages would then only have to define a plugin like this one:
from xeus-lua-kernel.
unfortunately there is a bit more : the dockerfile is different:
- the dockerfile needs to build lua / wren for wasm and this is different
- xeus-lua needs xwidgets and xproperties in the dockerfile, xeus-wren does not
Besides that It should really be just import names
from xeus-lua-kernel.
Right, the Dockerfiles would also be different and live in their respective repos.
from xeus-lua-kernel.
@jtpio I'll try to start with moving the common parts of the jupyterlite xeus kernel to https://github.com/jupyterlite/xeus-kernel
from xeus-lua-kernel.
@jtpio out of curiosity, how would you approach this?
Start by copy pasting the jupyterlite-xeus-lua code or from a fresh cookiecutter generated instance?
from xeus-lua-kernel.
It would be fine to copy what we have. Also https://github.com/jupyterlite/xeus-kernel will be a JavaScript dependency only so we don't need to copy the Python files.
from xeus-lua-kernel.
@jtpio I have a bit trouble setting the things up st I can import the local xeus-kernel-(base) code from jupyterlite-xeus-lua.
I was trying to add the local package to jupyterlite-xeus-lua via
yarn add $HOME/xeus-kernel
but then the import does not work.
import {XeusServerKernelBase} from 'xeus-kernel'
Any suggestion on setting up the dev environment st. I can use xeus-kernel-(base) in the jupyterlute-xeus-lua are appreciated
from xeus-lua-kernel.
Right that is often an issue when developing locally and the package has not been published yet. iirc handling of linked packages was fixed in a newer version of yarn
.
Just to make, is xeus-kernel
built? (files generated in lib
)
Otherwise a trick is to use a local npm registry like verdaccio
, and publish the package there (being careful to setup the .npmrc
correctly to not publish to the main npm registry).
from xeus-lua-kernel.
@jtpio thanks! indeed the lib was missing (sry for the noob questions)
I guess the next tricky part will be having a dynamic import in the xeus base worker =)
from xeus-lua-kernel.
@jtpio https://github.com/jupyterlite/xeus-kernel/tree/experiments this is where the common code is
from xeus-lua-kernel.
@jtpio https://github.com/jupyterlite/xeus-kernel/tree/experiments this is where the common code is
Thanks @DerThorsten for starting this!
We can go ahead and release jupyterlite-xeus-lua
as is for now. And then proceed with the refactor later.
Would you mind making me an admin of this repo, and I'll move it to the jupyterlite
org: https://github.com/jupyterlite
After the move I plan to do a small pass to fix the links, and then cut the release.
Thanks!
from xeus-lua-kernel.
@jtpio you already have access to the repo,...cannot find the menue to give you more premissions.
from xeus-lua-kernel.
And I cannot do it "You don’t have the permission to create public repositories on jupyterlite"
from xeus-lua-kernel.
Ah right Admin is probably just for organizations, this repo is under a private account.
@DerThorsten I made you owner of the org so you can do the transfer. Thanks!
from xeus-lua-kernel.
done
from xeus-lua-kernel.
Nice, thanks!
I'll proceed with a couple of renaming for consistency. Followed by a release.
from xeus-lua-kernel.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xeus-lua-kernel.