Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions to install pygmt kernel for Jupyter users #2153

Merged
merged 3 commits into from
Oct 13, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,17 @@ For Windows, add the ``GMT_LIBRARY_PATH`` environment variable following these
and set its value to a path like::

C:\Users\USERNAME\Anaconda3\envs\pygmt\Library\bin\

Notes for Jupyter users
-----------------------

If you can successfully import pygmt in a Python interpreter or IPython, but
fail to import pygmt in Jupyter with ``ModuleNotFoundError``, you may need to
seisman marked this conversation as resolved.
Show resolved Hide resolved
install a ``pygmt`` kernel following the commands below::

conda activate pygmt
python -m ipykernel install --user --name pygmt #to install conda env properly
seisman marked this conversation as resolved.
Show resolved Hide resolved
jupyter kernelspec list --json

After that, you need to restart Jupyter, open your notebook, select the
``pygmt`` kernel and then import pygmt.