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

pyTMD without Jupyter #156

Closed
bjarnebuchmann opened this issue Jan 31, 2023 · 2 comments · Fixed by #159
Closed

pyTMD without Jupyter #156

bjarnebuchmann opened this issue Jan 31, 2023 · 2 comments · Fixed by #159

Comments

@bjarnebuchmann
Copy link

bjarnebuchmann commented Jan 31, 2023

I'm running pyTMD under Linux, but I do not want to install Jupyter packages. I have no intentions of using Jupyter on this system, and the packages would only bloat the installation.
The "scripts" part of pyTMD seem to work fine without Jupyter, but every time I run a script, I get warnings:

/home/bjb/pyTDM/install-2023-01-31/lib/python3.10/site-packages/pyTMD-2.0.1.dev8+g664d6c0.d20230131-py3.10.egg/pyTMD/tools.py:54: ImportWarning: ipyleaflet not available
  warnings.warn("ipyleaflet not available", ImportWarning)
/home/bjb/pyTDM/install-2023-01-31/lib/python3.10/site-packages/pyTMD-2.0.1.dev8+g664d6c0.d20230131-py3.10.egg/pyTMD/tools.py:59: ImportWarning: ipywidgets not available
  warnings.warn("ipywidgets not available", ImportWarning)

Would it be possible to silence these warnings? If nothing else, then with an option stating that I am aware that the packages are not installed.

Thanks,
/Bjarne

@bjarnebuchmann
Copy link
Author

I see that this issue has already been raised in #94
However, my question is not so much about installation as spurious runtime warnings.

tsutterley added a commit that referenced this issue Jan 31, 2023
feat: use debug level logging instead of import warnings in `tools.py` to address #156
docs: don't have metavar for `--tide` to address #155
docs: updated v2 link for Arc2km to address #157
@tsutterley
Copy link
Owner

The import warnings have been changed to debug level logs. Should get rid of them unless running in debug mode

tsutterley added a commit that referenced this issue Feb 1, 2023
…159)

feat: use debug level logging instead of import warnings in `tools.py` to address #156
docs: don't have metavar for `--tide` to address #155
docs: updated v2 link for Arc2km to address #157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants