Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When running the lightweight components in a notebook, the component class code inspection fails with error `source code is not available`. Full error log here [log.txt](https://github.com/ml6team/fondant/files/14114022/new.3.txt) The error is related to the fact that `inspect` relies on the class located in a source file which is not the case in a notebook where everything runs interactively. This is described in details [here](https://stackoverflow.com/questions/35854373/python-get-source-code-of-class-using-inspect#:~:text=getsource%20works%20by%20actually%20opening%20the%20source%20file%20that%20defines%20the%20object%20you%27re%20looking%20at.) Implemented the workaround suggested [here](ipython/ipython#11249) --------- Co-authored-by: Robbe Sneyders <[email protected]>
- Loading branch information