Giter Site home page Giter Site logo

Comments (11)

guysv avatar guysv commented on July 28, 2024

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.

guysv avatar guysv commented on July 28, 2024

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.

hroncok avatar hroncok commented on July 28, 2024

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.

guysv avatar guysv commented on July 28, 2024

Hmm, I kinda hoped you could. but I couldn't remember exactly :(

from ilua.

guysv avatar guysv commented on July 28, 2024

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.

hroncok avatar hroncok commented on July 28, 2024
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.

hroncok avatar hroncok commented on July 28, 2024

Oh, sorry. It doesn't really use mylua.

from ilua.

hroncok avatar hroncok commented on July 28, 2024

Neither does LUA_INTERPRETER works, as mentioned in:

ilua/ilua/app.py

Lines 17 to 21 in 93fea36

self.parser.add_argument("-i", "--lua-interpreter", metavar="LUA",
default=self._get_default("LUA_INTERPRETER",
'lua'),
help="Lua interpreter to use for code "
"evaluations")

Maybe because this code is not used when jupyter console --kernel=lua starts?

from ilua.

guysv avatar guysv commented on July 28, 2024

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.

hroncok avatar hroncok commented on July 28, 2024
$ ILUA_LUA_INTERPRETER=mylua jupyter console --kernel=lua --no-confirm-exit

\o/

Thanks.

from ilua.

guysv avatar guysv commented on July 28, 2024

Aight, looks like a good workaround. I'll close this for now.

from ilua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.