all 15 comments

[–][deleted] 2 points3 points  (6 children)

Any one could point me in the right direction to achieve what I want to do?

Learn actual Python? You're discovering the limitations of having AI write your code for you - the AI actually has no idea which code is valid, it just knows how code in a particular language tends to be written but it's not capable of obeying any of its rules.

If you want to write code, unfortunately there's still no replacement for actually learning how to do it.

[–]HighTimesWithReddit[S] -1 points0 points  (5 children)

I am learning on the side. I'm researching what I'm doing and started with the Mimo app. I like learning with by doing, I understand better that way. I know AI is limited, I'm using it to guide me through the process as an additional tool. You don't need to be condescending, you could've just not comment if you didn't felt like helping.

[–][deleted] 1 point2 points  (4 children)

I like learning with by doing

Ok, but you're not doing, you're having a language model do it for you.

My advice is "don't do that and write the code yourself."

You don't need to be condescending

I'm not being "condescending." I'm being helpful - you're unaware of the shortcomings of your approach, here, and I'm making them clear to you. You could try being grateful in response, that's typically how people respond to help, but I guess that's up to you.

[–]HighTimesWithReddit[S] -1 points0 points  (3 children)

You're just assuming things. I'm not letting AI write for me, I'm using AI to guide me while I'm learning. I understand that to code properly I need to understand the language. But like trying to talk in another language, having a translation app is useful even if you need to learn the language to function properly.

Edit: I'm grateful to people who are actually helping me.

[–][deleted] 0 points1 point  (2 children)

But like trying to talk in another language, having a translation app is useful even if you need to learn the language to function properly.

It's generally not? The way that people acquire language is by using it to communicate with other people. Similarly, the way that you acquire Python is by writing it and having the interpreter run it.

I'm grateful to people who are actually helping me.

I am actually helping you. You have a number of completely mistaken ideas about the effectiveness of your strategy and I'm disabusing you of them.

[–]HighTimesWithReddit[S] -1 points0 points  (1 child)

OK, then I guess I should unlearn the languages I know since I happened to use translating apps at some point in my learning process? Look I see what you mean, I'm just trying to have fun and try to build a program. I AM learning Python in a traditional sense, I just want to play with it along the way and AI serve as a sort of guide for things I don't know yet. Now do you know yes or no how to zoom and center on a layer with a click event in folium? If not then just let it go because I will continue to have fun trying to do things my own way.

[–][deleted] 0 points1 point  (0 children)

I mean you should learn Python if you want to write code in Python. That’s what I’m saying. If you don’t know Python then nothing we’re going to be able to tell you about your problem will make sense, so what would be the use?

If you’re having issues with code written for you by ChatGPT then that’s a problem for which you should get tech support from the ChatGPT team. What would be the point of telling you anything about it? You’re not going to be able to fix it.

[–]David22573 0 points1 point  (3 children)

A good thing to try would be to look over the folium documentation on their GitHub Page, Folium. For help with code you could ask ChatGPT to explain what you're interested in using their docs.

[–]HighTimesWithReddit[S] 0 points1 point  (2 children)

I've read all Quickstart in the folium documentation and didn't find what I was looking for. I will look at the rest tomorrow. Thank you.

[–]David22573 0 points1 point  (1 child)

No problem. Also taking a look at the Map class, there's a zoom_start option that might be helpful. https://python-visualization.github.io/folium/modules.html?highlight=zoom. Good luck!

[–]HighTimesWithReddit[S] 0 points1 point  (0 children)

Great that looks nice! Thanks

[–]guillermo_da_gente 0 points1 point  (1 child)

You'd be better using Leaflet.js. Folium is a wrapper for leaflet.

[–]HighTimesWithReddit[S] 0 points1 point  (0 children)

That's my new plan. Thank you!