Forum Discussion
Using custom python library in notebook
Thanks for your responses.
To answer Srisakthi, yes the library is present:
And to Anonymous, i've tried the %pip list and my package isn't present.
Some additional info i can give is:
- I've created the package my self, based on een small set of python files. However, since the package does work when i install it through a notebook cell, I''ve concluded that the package isn't the issue.
This is the structure and one of the functions is the package:
This is the code i've used for the creation of the package:
from setuptools import find_packages, setup
setup(
name='idpdemo',
version='0.0.1',
description='demo_description',
author='Broeks',
packages=find_packages(include=['idp']),
install_requires=[], # Add your dependencies here
extras_require={
'dev': ['pytest'] # Test dependencies go here
}
)And I've tried to import the function through the following code:
from idp import check_dataframe_for_duplicate_keysIf you need additional information, let me known.
- Anonymous1 year agoNot applicable
HI Broeks,
I'd like to suggest text with other whl format custom libraries to confirm if this issue only applies on your side.
Regards,
Xiaoxin Sheng