You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the initial ideas we discussed for this package was that each submodule would have a different set of dependencies and they would all be "optional dependencies". For instance, the nixworks.table module shouldn't be available if Pandas isn't installed and the nixworks.plotter shouldn't be available without Matplotlib. The general idea is that users shouldn't need to install Pandas if they only want the plotting and vice versa. This will be more important as more modules get added.
We should figure out a nice way to conditionally enable submodules based on available dependencies. This could be a simple try catch in the module's files (e.g., in nixworks/table/table.py):
but perhaps it would be nicer if the top-level __init__.py did all the import checking and marked modules available or not with appropriate error messages.
The text was updated successfully, but these errors were encountered:
One of the initial ideas we discussed for this package was that each submodule would have a different set of dependencies and they would all be "optional dependencies". For instance, the
nixworks.table
module shouldn't be available if Pandas isn't installed and thenixworks.plotter
shouldn't be available without Matplotlib. The general idea is that users shouldn't need to install Pandas if they only want the plotting and vice versa. This will be more important as more modules get added.We should figure out a nice way to conditionally enable submodules based on available dependencies. This could be a simple try catch in the module's files (e.g., in nixworks/table/table.py):
but perhaps it would be nicer if the top-level
__init__.py
did all the import checking and marked modules available or not with appropriate error messages.The text was updated successfully, but these errors were encountered: