Error in running notebooks in KDB Developer Level 1 Course!

I am getting following error when running all the notebooks in KDB Developer Level 1 Course!. I discarded all my local changes and pulled a fresh copy from the remote repo. And also deleted .ipynb_checkpoints as instructed by ChatGPT but issue is still the same. please help to resolve.

---------------------------------------------------------------------------
QError                                    Traceback (most recent call last)
Cell In[4], line 1
----> 1 get_ipython().run_cell_magic('q', '', 'system"cd ",.trn.nbdir:$["/"=first v;"";getenv[`HOME],"/"],v:first system "dirname \'",getenv[`JPY_SESSION_NAME],"\'"\n\\l scripts/loaddata.q\n')

File /opt/conda/lib/python3.12/site-packages/IPython/core/interactiveshell.py:2565, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
   2563 with self.builtin_trap:
   2564     args = (magic_arg_s, cell)
-> 2565     result = fn(*args, **kwargs)
   2567 # The code below prevents the output from being displayed
   2568 # when using magics with decorator @output_can_be_silenced
   2569 # when the last Python token in the expression is a ';'.
   2570 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):

File /opt/conda/lib/python3.12/site-packages/pykx/nbextension.py:181, in q(instructions, code)
    179     if save:
    180         print(f"Cell contents not saved to '{path}' due to error during execution/saving.")
--> 181     raise e
    182 finally:
    183     if issubclass(type(_q), kx.QConnection):

File /opt/conda/lib/python3.12/site-packages/pykx/nbextension.py:169, in q(instructions, code)
    167     if debug or kx.config.pykx_qdebug:
    168         print(r['trc'])
--> 169     raise kx.QError(r['res'].py().decode())
    170 else:
    171     display(r['res']) if displayRet else print(r['res'])

QError: ./.ipynb_checkpoints/par-checkpoint.txt

4 Answers

4

Hi @ajith-ramawickramagm

I have pulled a new instance of the course that seems to work fine now. It is the course-introductory-workshop course and I have renamed your old instance to be course-introductory-workshop1.

Can you let me know if this works okay for you? Thanks!

Hi @megan_mcp it works now. Thank you. Just curious to know is there a workaround that I can troubleshoot this myself in the future

You can do this same action by renaming the old course and clicking the "Launch KX Sandbox" button again through the course page.

Hi @ajith-ramawickramagm

Are you running the notebooks within edu.kx.com?

Hi @mmcparland. Thanks for your reply. Yes I am. Just clicked the "Launch KX Sandbox" button here https://academy.kx.com/courses/kdb-developer-level-1/lessons/course-introduction/ and it redirects to the edu.kx.com

Okay great. I’m going to access your server to try and mend the issue.

I will update when all is resolved, thanks!