jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.25k stars 333 forks source link

PyBaseball module not found in JupyterLab notebook #401

Closed gianp21 closed 6 months ago

gianp21 commented 7 months ago

I'm trying to execute 'from pybaseball import statcast' on a JupyterLab notebook like normal, but now I'm receiving an error code stating the module doesn't exist. Does anyone know what's going on with this or how to fix it? Thanks!

BatDad7 commented 7 months ago

I second this

kevingarnett commented 7 months ago

I'm trying to execute 'from pybaseball import statcast' on a JupyterLab notebook like normal, but now I'm receiving an error code stating the module doesn't exist. Does anyone know what's going on with this or how to fix it? Thanks!

Are you using any tools such as virtualenv or pipenv?

gianp21 commented 7 months ago

No, I'm not using either of those, but I think I ended up discovering the issue. It has to do with the web version of JupyterLab not having the necessary updates. I installed JupyterLab on my desktop and verified I had the most recent version of Python and it worked without issue now. Thanks for the help though!

kevingarnett commented 7 months ago

Perfect. Thanks for the update!

BrayanMnz commented 6 months ago

I use pybaseball in jupyter lab without issues, and, per @gianp21 comment above this is not an issue related to pybaseball. he had a Jupyter Lab issue.

This can be closed. @schorrm