Skip to content

Can't view NumPy example from pyscript.net #87

@ma7dev

Description

@ma7dev

While browsing the examples on pyscript.net, I have noticed that the Visualization of Mandelbrot, Julia and Newton sets with NumPy and HTML5 canvas doesn't work and the reason why seems to be because of wrong importing of palettes.py.

Screenshot from 2022-05-01 02-46-47

This issue was caused by the absolute path set rather than having it as a relative path in pyscriptjs/examples/numpy_canvas_fractals.html.

Before:

- paths:
  - /palettes.py
  - /fractals.py

After:

- paths:
  - palettes.py
  - fractals.py

I have noticed this issue occurs in different examples that's why most people couldn't view the examples from REPL or pyscript.net. I will make a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tag: exampleRelated to adding or improving examplestype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions