...
We can see new links to our external directories: | |
And now we can get to them: |
What Packages are Available in our Kernel?
...
Getting information about packages?
What’s Installed - How to find out:
In our notebook, we can see which modules are available by opening a new cell with the + button. In our cell box, set as “code” use the python Hitting tab after |
New Cell in our Notebook
...
Since we appear to have a large number of packages available in this environment, we’ll import one we expect to be there.
In our bottom-most cell, add to the import command by typing an import for a common package used in mathematic and multi dimensional matrix computations - numpy.
...
What’s Installed - Can we get a list in Python?
Yes. By running |
...
What’s installed and how to use it: Python - help()
Generally,
help ('modules <module_name>')
will give us information on how to use the specific python library we’re importing as long as that library is installed.Similar in functionality to the
--help
andman
commands for shell.
...
What’s Installed - Can we get a list in R?
...
What’s Installed - Query a specific package in R?
...
What’s Installed and how to use it: In R - help()
...
We’ve confirmed the package we need is unavailable:
Our output results in an error: |
|
...
Option 1: Load a different kernel
Depending on the HPC’s native environment, you may have other kernels available. |
To load a different kernel, we go to the Kernel option in our drop down menu then navigate to “Change kernel”.
Or not ---> MedBow currently has a minimal number of global kernels (purposefully). |
...
If this were an option, we’d see it in our dropdown list of kernels and could select a different one:
|
|
...
The new kernel is loaded as shown in the top right of our notebook.
| |
|
...
No available kernels have all the software I need - Now what?
Partially covered in python and conda materials, but short answer:
Best practice - Do NOT install the software directly from your jupyter kernel
...
...
Doing so can and frequently does eventually result in:
...
...
Next Steps
...