Comments (11)
Looks like this requires a trivial patch in consoleapp.py that will forward excess arguments to the jupyter frontend.
I'll see what I can do.
from ilua.
ooh, by the way, you can fire up ilua via jupyter-console's entry point jupyter console --kernel=ilua
. That way you'll also get access to ipython's tweaking options.
https://jupyter-console.readthedocs.io/en/latest/
from ilua.
I get jupyter_client.kernelspec.NoSuchKernel: No such kernel named ilua
.
With lua
I get it working, but I cannot specify my custom interpreter :(
from ilua.
Hmm, I kinda hoped you could. but I couldn't remember exactly :(
from ilua.
Wait, ilua also takes parameters from environment variables.
ILUA_INTERPRETER=mylua ilua
equals ilua -i mylua
if you ILUA_INTERPRETER=mylua jupyter-console -kernel lua
, then jupyter will export the right variables to the child.
from ilua.
ILUA_INTERPRETER=mylua jupyter console --kernel=lua --no-confirm-exit
Get's the job done. --no-banner
is not recognized by jupyter console
, but I can live with that. Thanks.
from ilua.
Oh, sorry. It doesn't really use mylua
.
from ilua.
Neither does LUA_INTERPRETER
works, as mentioned in:
Lines 17 to 21 in 93fea36
Maybe because this code is not used when jupyter console --kernel=lua
starts?
from ilua.
hmm, it should be used, according to kernel.json
https://github.com/guysv/ilua/blob/master/defaultspec/kernel.json
I misled you, the correct variable is ILUA_LUA_INTERPRETER
I should've documented that >_<
from ilua.
$ ILUA_LUA_INTERPRETER=mylua jupyter console --kernel=lua --no-confirm-exit
\o/
Thanks.
from ilua.
Aight, looks like a good workaround. I'll close this for now.
from ilua.
Related Issues (20)
- Ctrl-C Interrupt Support HOT 5
- What exactly is required from the custom lua interpreter? HOT 5
- Operation not permitted when piping in stdin HOT 2
- No such kernel named lua HOT 4
- RFE: A way to pass additional help_links from kernel.json HOT 3
- Install error on macOS HOT 4
- Installing to Jupyter's kernelspec? HOT 2
- Implement a backend running the kernel in the same process using lupa HOT 1
- Got error in jupyter lab HOT 19
- Exception 'coroutine' object is not subscriptable on typing anything HOT 11
- How to pip install ilua in specify lua version? HOT 4
- ilua in fedora 34 no docstrings, only ? HOT 1
- how to quit/close/exit ilua? HOT 2
- Exit cleanly when no Lua executable found HOT 1
- Tab-completion crashes HOT 7
- The included "inspect" module poorly respects __tostring metamethods
- builtins.AttributeError: 'ILuaKernel' object has no attribute 'proto' HOT 10
- Docstring crashing shell HOT 3
- printing HOT 7
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 ilua.