question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make platform available to LibraryDefinitionProducer

See original GitHub issue

I’m looking at adding integration for tensorflow. There is a large native dependency, and while I can just depend on the all-platforms bundle, I would like to depend on only the current platform’s (or error if it’s not supported). Presumably the way to do this would be via a LibraryDefinitionProducer, but as far as I can see there is no way to get the platform. Will there be issues if I use the current JVM’s methods (i.e. System.getProperty("os.name") in my LibraryDefinitionProducer)?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ileasilecommented, Jun 28, 2021

Sorry for delay, I have been vacationing 🌴

  1. You may use %use magic in your library init code. For JSON descriptor: { “init”: [“%use someOtherLib”] } For new-way integration:
onLoaded {
execute("%use someOtherLib")
}
  1. Repositories included by default are listed here: https://github.com/Kotlin/kotlin-jupyter/blob/0dc5720df110f51e8c505d67e05d5f9d2d2cd5d9/jupyter-lib/shared-compiler/src/main/kotlin/org/jetbrains/kotlinx/jupyter/config/defaultImports.kt#L8 They are Central and JitPack currently.
0reactions
ileasilecommented, Jul 2, 2021

I’m closing this issue because solution exists and it’s hard to invent something better

Read more comments on GitHub >

github_iconTop Results From Across the Web

Library hell - why are changes in a producer not reflected in ...
If the platform needs further libraries (producer of producer) they will be obtained from the direct producers. In our example: all the ...
Read more >
Kafka Producer | Confluent Documentation
Confluent Platform includes the Java producer shipped with Apache Kafka®. This section gives a high-level overview of how the producer works and an ......
Read more >
Record Producer - ServiceNow Docs
A record producer is a specific type of catalog item that allows end users to create task-based records, such as incident records, ...
Read more >
OAPEN: Online Library and Publication Platform
We work with publishers to build a quality-controlled collection of open access books and provide services for publishers, libraries, and research funders ...
Read more >
Glossary of Digital Library Terms
A document signed by both the producer and Digital Preservation Repository staff that describes an inventory and records the negotiated data ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found