Hey Guys!
Sorry for late response...
@Andy and @Ray I am sorry for being unclear...
I haven’t really been able to run either of your scrims as expected...
When I OPEN them via the URL, i.e first access - they displayed charts- BUT...
Andys Chart
was ’super frozen’ i.e. It was really small in corner, and I couldn’t change anything, and if I tried to execute the code. it failed.
Rays CSV,
similar thing, when I loaded the scrim, I saw the graph and as far as the code was concerned, the read of the data came from the CSV...BUT
when I tried to run the scrim, It failed and woudl not read from the CSV...That’s what I meant by saying ’it worked on your end’, and ’...an artefact on your end’
My exclamation to Ray about getting Scrimba to work with CSV was derived from seeing the chart based on CSV...When it subsequently failed for me..I guessed it was me not understanding some obvious thing or having some wrong version of something installed.
I thought Maybe Scrimba had changed something, but seems they haven’t
So I am apologize, but have to report I actually haven’t gotten either of the two to work my end, but have managed to execute a linechart(Covid R’s), and as of yesterday a simple bar/column chart to work for css.py( frequency plot)
------ My mental status/plan as of now---
- Check out how to re-use @Andys access to a separate .py file by using import
- try to get feedback from you guys on other ways to access data from another .py file or maybe online service/ URL ( in Scrimba)
- Try to plot pie charts, and some others in css...
- try to move forward with testing Brycharts, and see if ?Piechart? I originally tried a few weeks ago still works
- Ask Scrimba if they can see some reason why Brython 3.9 may be crashing, and generally behaving in a different manner
- Examine the ’reality’ of file reading in Scrimba... It makes no sense to me that the index.html file is allowed to call scripts from a ’main.py’ file but is totally unable to do the same for a file called .main.txt, or main.csv...
If there is such a general ’lock’ maybe a way around it would be to translate the call to another file or ??
It seems to me that the problem cannot be impossible to ’hack’ in a neat and reasonably transaprent way...
The fact that I cannot come up with such a way, likely has more to do with my lack of experience in the area, than the impossiblity of the problem ;-)
- Also increasingly annoyed by platfroms such as Scrimba..jfiddle and the ’rest of them’ not really working properly at all on mobile/ ipad devices...
I am guessing it is something to do with resources missing or something, rather than the ’specs’ of the hardware...but again I have next to zero knowledge on the subject...
For file reading, I still find @Pierres workaround for getting the files very ...very sexy..if only I can strip it away from ’view’ i.e move it somewhere where the users isn’t likely to see it...
-Would it be possible to put it in the .html file? how would it then be called from the code...in my .py file...
Any suggestions and help very appreciated, and I am so happy and thankful for your help sofar.
Here is my latest in ’Olof plays with graphs - Die roll frequency’
https://scrimba.com/scrim/cavWEBCw