vskatusa has asked for the wisdom of the Perl Monks concerning the following question:

I have installed jupyter notebook in ubuntu 22.04 LTS and the kernels
  • R
  • Julia and
  • Python
  • works fine. However, I am struggling to install perl kernel.

    From google (I know not to be trusted) I installed packages as follows:


  • sudo apt install libzmq3-dev
  • sudo apt install cpanminus
  • export ARCHFLAGS='-arch x86_64'
  • cpanm --build-args 'OTHERLDFLAGS=' ZMQ::FFI
  • cpanm Devel::IPerl
  • iperl --version # install kernel and exit

  • The last command iperl --version does not exit but I see the following in the terminal

    $ iperl --version
    App::REPL _

    And just hangs in there - does not exit....It is supposed to exit and install the kernel
    Any help would be much appreciated.

    Replies are listed 'Best First'.
    Re: jupyter kernel perl
    by kcott (Archbishop) on Feb 15, 2023 at 04:33 UTC

      G'day vskatusa,

      REPL stands for read–eval–print loop. It hasn't hung; it's waiting for input from you. Did you try typing exit?

      Sorry, I know nothing about "jupyter notebook" itself; I can't help further.

      — Ken

        Per line 43-49 of iperl, it ought to print the versions & exit, at least on the command line (do not know, nor do I care, how iperl --version would behave inside Jupyter machinery).
          Yes that was my understanding.....Well probably I will abandon perl kernel in jupyter. BTW this has nothing to do with jupyter. All it is supposed to do is install perl kernel

        Jupyter

        «The Crux of the Biscuit is the Apostrophe»

    Re: jupyter kernel perl [some suggestions]
    by kcott (Archbishop) on Feb 15, 2023 at 17:34 UTC

      Although I previously wrote that "I can't help further"; I was curious. Here's some suggestions which might get you a bit further.

      • Just telling us "From google ..." is not particularly helpful. I'm guessing a search led you to a forum/blog/etc. which provided the commands you posted. More information about that may help us to help you.
      • I would have started investigating from CPAN. Devel::IPerl is fairly sparse; following the link to the distribution, Devel-IPerl, provides a little more.
      • In README.md, I see "ZeroMQ", "Jupyter", and "CPAN" sections; your post indicates that you worked on "ZeroMQ" and "CPAN", but not "Jupyter". Is that something you need to revisit?
      • There's also a link to iperl. This has virtually no information. To be honest, that raises a red flag for me and doesn't fill me with confidence: is the code also incomplete?
      • The Issues link shows five bugs. See if there's anything useful for you.
      • The Repository link leads to a GitHub page. That appears to have more information than the CPAN page. See if there's anything useful here.
      • That GitHub page has an Issues link. This shows 37 open items. Again, see if there's anything useful for you.
      • The cpanm utility has a lot of options. Some of these may provide useful feedback: --verbose stands out in this regard.

      — Ken

        Ken, Thanks for your post. I installed everything to the T form README.md - no luck so far. I emailed the author as well.