ncar / python-toolbox-faq Goto Github PK
View Code? Open in Web Editor NEWFrequently asked questions about Python/Pangeo Toolbox
Frequently asked questions about Python/Pangeo Toolbox
Name | Stackoverflow | Gitter Channel | Mailing List |
---|---|---|---|
Python | https://bit.ly/1sCO8pr | - | - |
Xarray | https://bit.ly/2NypLYy | https://gitter.im/pydata/xarray | https://bit.ly/2MGt8xc |
Dask | https://bit.ly/2KZ1ZTQ | https://gitter.im/dask/dask | - |
NumPy | https://bit.ly/2HopEuX | https://gitter.im/numpy/numpy | - |
SciPy | https://bit.ly/32bANHA | - | - |
Pandas | https://bit.ly/2HvPgGl | https://gitter.im/pydata/pandas | - |
Matplotlib | https://bit.ly/2ZipT5D | https://gitter.im/matplotlib/matplotlib | - |
Cartopy | https://bit.ly/326ThZx | https://gitter.im/SciTools/cartopy | - |
HackMD Note: https://hackmd.io/@Tk4Zdl52TT6lvxneSz_IfA/rk-iwBXrr
Profiling:
For packages installable from PyPI
, PyPI's classifier allows finding a package from a set of defined categories:
ncar-jobqueue
: https://github.com/NCAR/ncar-jobqueue provides convenient utilities for using dask-jobqueue on some clusters used @ NCAR. Hobart is one of the supported clusters:
ncar-jobqueue
pip install ncar-jobqueue
ncar-jobqueue
>>> from ncar_jobqueue import NCARCluster
>>> from dask.distributed import Client
>>> cluster = NCARCluster()
>>> cluster
NCARCluster(cores=0, memory=0 B, workers=0/0, jobs=0/0)
>>> cluster.scale(2)
>>> cluster
NCARCluster(cores=96, memory=192.00 GB, workers=2/2, jobs=2/2)
>>> client = Client(cluster)
cc @jkshuman
Originally posted by @matt-long in ncar-hackathons/faq#1
Updates to Cheyenne have, in the past, change the RSA keys for the analysis machines. This can lead to problems if the new keys don't match those in ~/.ssh/known_hosts. Remove the offending keys in ~/.ssh/known_hosts.
Originally posted by @matt-long in ncar-hackathons/faq#2
Python packages use the Python warnings module to issue warning messages. The details of using the warnings module are general to Python, and apply to any Python software that uses this system.
Since warnings are not fatal, a program may encounter the same warn-able situation many times in the course of running.
Warning messages are typically issued in situations where it is useful to alert the user of some condition in a program, where that condition (normally) doesn’t warrant raising an exception and terminating the program. For example, one might want to issue a warning when a program uses an obsolete module.
The warning categories are described in the documentation
At the beginning of your script or jupyter notebook, include:
import warnings
warnings.filterwarnings('ignore')
Note: This might not suppress all the warnings, but it will suppress most of them.
DeprecationWarnings
It's a good practice to gradually deprecate one's library's API, so that users get advance warning of coming changes. Therefore, if you see deprecation warning from a package that you plan on updating in the future, you should be pay attention that features might go away in the future releases.
TODO
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.