hpc-toolset-tutorial icon indicating copy to clipboard operation
hpc-toolset-tutorial copied to clipboard

GUI-demo.ipynb doesn't work when JupyterLab starts

Open iqlinuxadmin opened this issue 7 months ago • 1 comments

The GUI-demo.ipynb demo isn't working. If I paste all the code into the console from the GUI-demo.ipynb window, it works, but when it opens after I click "Connect to Jupyter" from the "My Interactive Sessions" page, I get an error. It's beyond my JupyterLab skills to diagnose quickly, so maybe someone who put the tutorial together could take a look at this. Here's the error:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-9459b4c08997> in <module>
      6 ## sex male=0 female=1
      7 ## removed all NA
----> 8 penguins_df = pd.read_csv("/home/hpcadmin/jupyter_notebook_data/penguins.csv")
      9 penguins_df.drop(penguins_df.columns[[0]], axis = 1, inplace = True)
     10 # always look at the data

NameError: name 'pd' is not defined

Here's a screenshot of what I see: Image

iqlinuxadmin avatar Jun 02 '25 18:06 iqlinuxadmin

Okay, interesting, I think I understand this a little better. The doc says: Connect to the Jupyter session and navigate to the jupyter_notebook_data directory. Open the GUI-demo.ipynb and this should open a new tab to this notebook. Run all the cells in this notebook for a demonstration that this Jupyter does in fact work.

However, the tab is already open. It looks to me like the cells didn't run in order, or only the middle one ran or ???

At minimum, I'm going to change it to say "run all the cells by clicking shift-enter" so people like me know how to do that, but it seems like the demo opens automagically then doesn't run the cells quite right, so it would be good to change that.

iqlinuxadmin avatar Jun 02 '25 18:06 iqlinuxadmin