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

Make description for development of keplergl-jupyter more accessible to beginners #2848

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kopp
Copy link

@kopp kopp commented Dec 20, 2024

  • Factor development setup into DEVELOPMENT.md
  • Add a preface describing the different technologies used

Copy link

netlify bot commented Dec 20, 2024

Deploy Preview for keplergl2 ready!

Name Link
🔨 Latest commit 018b233
🔍 Latest deploy log https://app.netlify.com/sites/keplergl2/deploys/678092f1c9900a0008411cfd
😎 Deploy Preview https://deploy-preview-2848--keplergl2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kopp kopp mentioned this pull request Dec 20, 2024
@kopp kopp force-pushed the make-keplergl-jupyter-docs-more-accessible-for-beginners branch from d9c1e22 to 0f1981e Compare December 20, 2024 22:48
Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@kopp
Copy link
Author

kopp commented Dec 22, 2024

I do not really get it: yarn start works, but yarn build fails due to Error: error:0308010C:digital envelope routines::unsupported. Is yarn build supported/the recommended way to go at all for the jupyter extension?

To build without a local server that watches for changes, use

```shell
yarn build
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not work for me -- should it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when I use yarn start, I end up with a labextension that errors out with 'Failed to load model class 'KeplerGlModal' from module 'keplergl-jupyter'`, is that because something is missing in the build?


```shell
pip install -e . # in this folder
cd js && jupyter labextension develop . --overwrite
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fails for me as well -- build in js works but develop in this directory fails.

@kopp
Copy link
Author

kopp commented Dec 22, 2024

Can someone who actively works on the plugin please suggest improvements? I am unable to build/use the plugin.

@lixun910
Copy link
Collaborator

The issue "Failed to load model class" should be fixed in #2588. However, this PR has not been merged yet. So, can you try to test it using that pr?

Also, I've noticed the jupyter kernels are very easy to be misconfigured for jupyter notebook / jupyter lab. Can you run the test using the docker file: bindings/kepler.gl-jupyter/Dockerfile in that pr?

Thanks!

Copy link
Collaborator

@lixun910 lixun910 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kopp! I think the easy way to setup the dev environment is using the docker. Here is one in the repo: https://github.com/keplergl/kepler.gl/blob/master/bindings/kepler.gl-jupyter/Dockerfile

I also create docker images with keplergl-jupyter (v0.3.6). You can run the following command:

Run the docker under your notebook directory

docker run -v $(pwd):/notebooks --rm -p 8888:8888/tcp lixun910/keplergl-jupyter:latest

Run your notebooks in browser with the token which you can see in the terminal or log e.g.

http://127.0.0.1:8888/tree?token=f5be411ce5567b49baaaa80977f100aa4819d61fd66d3559

The repo is here: https://github.com/lixun910/kepler-jupyter-docker

bindings/kepler.gl-jupyter/DEVELOPMENT.md Outdated Show resolved Hide resolved
bindings/kepler.gl-jupyter/DEVELOPMENT.md Outdated Show resolved Hide resolved
bindings/kepler.gl-jupyter/DEVELOPMENT.md Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need this file, since the project uses volta (see root level package.json). Can you delete this file? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants