Skip to content
Discussion options

You must be logged in to vote

@harisbal just published a version of pydeck with the ScenegraphLayer changes, so you might want to upgrade (pip install -U pydeck if you're using pip). The Python SimpleHTTPServer doesn't enable CORS by default. Try http-server for this.

npm install -g http-server
# In the directory of your .glb file
http-server -p 8000 --cors

I can verify that this code works for me (from the examples/ directory in pydeck):

import pandas as pd

from pydeck import Layer, Deck
from pydeck.data_utils import compute_view
from pydeck.types import String

DATA_URL = "https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/bart-stations.json"
# Referencing the local file server
SCENEGRAPH_URL = "ht…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@harisbal
Comment options

@ajduberstein
Comment options

@bobfortin64
Comment options

@muntakim1
Comment options

@iimmer
Comment options

Answer selected by harisbal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
7 participants
Converted from issue

This discussion was converted from issue #6321 on October 25, 2021 19:30.