Code Monkey home page Code Monkey logo

Comments (5)

Bdl-1989 avatar Bdl-1989 commented on June 7, 2024 1

build notebook means
image
image

from wizmap.

carschno avatar carschno commented on June 7, 2024

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.

Bdl-1989 avatar Bdl-1989 commented on June 7, 2024

u need to have node.js/npm
check the package.json, build notebook, then wizmap.js can be generated

from wizmap.

carschno avatar carschno commented on June 7, 2024

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.

carschno avatar carschno commented on June 7, 2024

That works, thanks!

Now I can also confirm that my changes in PR #11 work as expected.

from wizmap.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.