KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ How to modify the execution command in qJupyter?

  • How to modify the execution command in qJupyter?

    Posted by user931206 on November 14, 2023 at 12:00 am

    I am trying to start qJupyter on one of our servers.
    All well, but I need to modify the q command it uses because we only have a licence for 2 cores on our dev server and I need to append taskset -c 1,2 before the q command.
    Does anyone know how to achieve that ?

    user931206 replied 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • rocuinneagain

    Member
    November 14, 2023 at 12:00 am

    Edit the file https://github.com/KxSystems/jupyterq/blob/master/kernelspec/kernel.json

    {  "argv": [   "taskset",   "-c",   "0,1",   "q",   "jupyterq_kernel.q",   "-cds",   "{connection_file}"  ],  "display_name": "Q (kdb+)",  "language": "q",  "env": {"JUPYTERQ_SERVERARGS":"","MPLBACKEND":"Agg"} } 

    If you have already installed you can ensure Jupyter picks up the changes by reinstalling the kernel:

    python -m jupyter kernelspec install --user --name=qpk /path/to/kernelspec 

    And you can validate in a notebook with system"taskset -pc ",string .z.i:

     

    ?

  • user931206

    Member
    November 15, 2023 at 12:00 am

    thank you . This solved my problem.

Log in to reply.