Skip to content

Commit

Permalink
Merge pull request #39 from neptune-ai/aw/fix_callback_import
Browse files Browse the repository at this point in the history
fix import issue
  • Loading branch information
AleksanderWWW authored Oct 10, 2022
2 parents f0e0912 + 33c56de commit 1ebc412
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
### Changes
- moved neptune_fastai package to src dir ([#37](https://github.com/neptune-ai/neptune-fastai/pull/37))

### Fixes
- Fixed NeptuneCallback import error - now possible to directly import with `from neptune_fastai import NeptuneCallback`
([#39](https://github.com/neptune-ai/neptune-fastai/pull/39))

## neptune-fastai 0.10.3

### Changes
Expand Down
14 changes: 5 additions & 9 deletions src/neptune_fastai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
# limitations under the License.
#

from neptune_fastai._version import get_versions

__all__ = [
"__version__",
]

__version__ = get_versions()["version"]

del get_versions
from neptune_fastai.impl import (
NeptuneCallback,
__version__,
retrieve_fit_index,
)
9 changes: 6 additions & 3 deletions src/neptune_fastai/impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

__all__ = ["NeptuneCallback", "retrieve_fit_index"]
__all__ = ["NeptuneCallback", "retrieve_fit_index", "__version__"]

import hashlib
import time
Expand All @@ -38,8 +38,6 @@
trainable_params,
)

from neptune_fastai import __version__

try:
# neptune-client=0.9.0+ package structure
import neptune.new as neptune
Expand All @@ -55,6 +53,11 @@
from neptune.types import File # isort:skip


from neptune_fastai._version import get_versions

__version__ = get_versions()["version"]


INTEGRATION_VERSION_KEY = "source_code/integrations/neptune-fastai"


Expand Down

0 comments on commit 1ebc412

Please sign in to comment.