Issue with loading data

Hi,

I am doing the q developer 1 course. Notebooks were fine last time, but now I cannot load data anymore. It keeps returning the following. The par file looks OK so no idea why it's failing.

Thanks,
Cedric

QError Traceback (most recent call last)
Cell In[3], 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.13/site-packages/IPython/core/interactiveshell.py:2593, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
2591 with self.builtin_trap:
2592 args = (magic_arg_s, cell)
-> 2593 result = fn(*args, **kwargs)
2595 # The code below prevents the output from being displayed
2596 # when using magics with decorator @output_can_be_silenced
2597 # when the last Python token in the expression is a ';'.
2598 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):

File /opt/conda/lib/python3.13/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.13/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

1 Answer

1

Hi @cedric , Can you restart your server and test again?

You can do this on Jupyterhub by going to File> Hub Control Panel> Stop My Server > Start My Server.
Let me know if you're still having issues afterwards.

Laura