1

I'm new to Python programming. I just downloaded a python project code to test train the sample.

Has installed python & jupyter notebook desktop setup in windows 10, but in both the localhost web environment & desktop setup I'm unable to RUN any of the scripts cause all the submenu options of 'Run' & 'Kernel' are disabled.

All those experts in the stack overflow are requested to pls guide in further.

hawk
  • 21
  • 3
  • Are they disabled in notebooks or in file editor? In order to run scripts via file editor you need to use context menu → "create console for editor" but this may change soon: https://github.com/jupyterlab/jupyterlab/issues/12172 – krassowski Mar 13 '22 at 16:22
  • for new users, i recommend `vs code` as an editor. This editor lets you run both python files `*.py` and jupyter notebook files `*.ipynb`... – D.L Mar 14 '22 at 09:06
  • @krassowski okay I did that but it creates console with blank cells it has got nothing to run. The python code file doesn't run. – hawk Mar 14 '22 at 15:36
  • Earlier I had created an virtualenv using cmd prompt command does it has anything to do with interpreter?. – hawk Mar 14 '22 at 15:37
  • Once you have console open (with a kernel selected) you can select the code in editor and press `shift` + `enter`. – krassowski Mar 14 '22 at 15:40
  • 1
    Actually after creating first python notebook all the options has been made available. May be executable environments where not created. – hawk Mar 19 '22 at 08:50

0 Answers0