Search code examples
juliajupyterjupyter-notebookjulia-jumpijulia-notebook

NameError: name 'Pkg' is not defined


In the IJulia Notebook I'm trying to add the packages, but I'm getting the error:

NameError: name 'Pkg' is not defined

Solution

  • Python was wrongly selected instead of Julia in Jupyter: enter image description here

    Here's what happens in Julia: enter image description here

    And here's what happens in Python: enter image description here