Skip to content

docs on usage are out of sync and fail due to API changs in v2 #173

@joinr

Description

@joinr

https://clj-python.github.io/libpython-clj/Usage.html

(require '[libpython-clj.python
                 :refer [as-python as-jvm
                         ->python ->jvm
                         get-attr call-attr call-attr-kw
                         get-item att-type-map
                         call call-kw initialize!
                         as-numpy as-tensor ->numpy
                         run-simple-string
                         add-module module-dict
                         import-module
                         python-type]])

fails.

Removing call, as-numpy, as-tensor, ->numpy and changing namespace works:

(require '[libpython-clj2.python
                 :refer [as-python as-jvm
                         ->python ->jvm
                         get-attr call-attr call-attr-kw
                         get-item
                         initialize!
                         run-simple-string
                         add-module module-dict
                         import-module
                         python-type]])

I haven't checked any other examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions