Comments (5)
from wizmap.
From the comments in wizmap.py
, I do understand that the JS file needs to be bundled. However, I am not clear how to do that -- possibly due to a lack of JS knowledge.
from wizmap.
u need to have node.js/npm
check the package.json, build notebook, then wizmap.js can be generated
from wizmap.
I do have node.js and npm, and all JS dependencies installed, but when I build the notebook-widget locally, it still does not include the wizmap.js file. This is what I have done:
$ npm install
npm WARN deprecated @types/[email protected]: This is a stub types definition. sass provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
added 384 packages, and audited 385 packages in 29s
52 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
So I build the notebook:
$ cd notebook-widget
$ python3 -m build --wheel
* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (setuptools >= 40.8.0, wheel)
* Getting build dependencies for wheel...
[...]
Successfully built wizmap-0.1.2-py2.py3-none-any.whl
However, the resulting Wheel does not contain the wizmap.js
file:
$ unzip -t dist/wizmap-0.1.2-py2.py3-none-any.whl | grep wizmap.js
Consequently, when I install the package, wizmap.js
is not there either:
$ pip install .
$ ls .venv/lib/python3.11/site-packages/wizmap | grep wizmap.js
With the pip package that you have provided, on the other hand, wizmap.js
is present (as expected):
$ ls .venv/lib/python3.11/site-packages/wizmap | grep wizmap.js
wizmap.js
Would you mind sharing the commands to use for building the Python package?
from wizmap.
That works, thanks!
Now I can also confirm that my changes in PR #11 work as expected.
from wizmap.
Related Issues (16)
- Where to find wizmap.js? HOT 5
- 使用什么启动本地服务才能将数据传入wizmap。 HOT 1
- What should be used to start local services in order to pass data into wizmap. HOT 1
- 怎么配置本地服务器才能将数据传给wizmap HOT 1
- High density region labels are calculated only for one of the two groups HOT 1
- 0 Data points HOT 3
- Embeddings now showing HOT 1
- Embeddings not showing HOT 1
- Example with localhost URLs HOT 34
- Cannot use spaces in `groupNames`
- No points are displayed HOT 7
- How can I display images? HOT 5
- Different colors for different points? HOT 4
- Language Support HOT 2
- please check the link, why the blue contour cover all the point? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wizmap.