Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Enable the code to run both on google colab as well as local system #47

Closed
1 task done
shristirwt opened this issue Oct 5, 2024 · 4 comments · Fixed by #50
Closed
1 task done

[BUG] Enable the code to run both on google colab as well as local system #47

shristirwt opened this issue Oct 5, 2024 · 4 comments · Fixed by #50
Assignees
Labels
bug Something isn't working good first issue Good for newcomers gssoc-ext GSSoC'24 Extended Version hacktoberfest Hacktober Collaboration hacktoberfest-accepted Hacktoberfest 2024 level2 25 Points 🥈

Comments

@shristirwt
Copy link
Contributor

Has this bug been raised before?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Description

I found that the code displays an error if not executed on google colab hence I want to modify it so that it runs both on google colab as well as local environment
Screenshot 2024-10-05 165809

Steps to Reproduce

Include any relevant details like:

  • I found the error on Stock_Price_Prediction.ipyng
  • I was executing the code when I found the error
  • It displayed an error saying No module named google.colab

Screenshots

No response

Do you want to work on this issue?

Yes

If "yes" to the above, please explain how you would technically implement this.

I will check if the code is being executed on google colab or on the local system and then the path of the file will be provided accordingly

@shristirwt shristirwt added the bug Something isn't working label Oct 5, 2024
@jvedsaqib
Copy link
Collaborator

Hi @shristirwt,

I have reviewed the code, and it is functioning as expected on my end.
Could you please verify if you are using the correct path?

image

Let me know if you encounter any issues or need further assistance.

@shristirwt
Copy link
Contributor Author

Hello @jvedsaqib ,
I am running the code locally that's why it is resulting in an error . I was thinking of implementing the code in a way that it runs on both
Screenshot 2024-10-05 191058

@jvedsaqib
Copy link
Collaborator

Ok!
If you are running locally then there's no need to import colab. You can just load the DS directly.
As for changing it to be flexible for both ways, it would be great.
@rohitinu6 can assign you to this.

@shristirwt
Copy link
Contributor Author

Thank you

Do I need to reach out to him or will he assign it to me from the issues raised

@rohitinu6 rohitinu6 added good first issue Good for newcomers gssoc-ext GSSoC'24 Extended Version hacktoberfest-accepted Hacktoberfest 2024 level2 25 Points 🥈 hacktoberfest Hacktober Collaboration labels Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers gssoc-ext GSSoC'24 Extended Version hacktoberfest Hacktober Collaboration hacktoberfest-accepted Hacktoberfest 2024 level2 25 Points 🥈
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants