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.

Seeking path forward for sharing custom extensions (e.g. sharing LaTeXLabel custom model)

See original GitHub issue

With the added support for external resources, we’ve added a route to generate LaTeX through the KaTeX library. Currently there’s a custom model example here.

We’re not likely to add LaTeX support (via KaTeX) to the core library because it would require adding 175kb (153kb JS + 22kb CSS) of resources and increase the minified library about ~20%, for a feature that only a subset of users need. This situation of wanting features that require external resources that make it unlikely to be merged into the core library is increasingly common in Bokeh (another example is adding Ion slider support).

So we need to find a solution to simplify finding/creating/sharing custom extensions.

I can imagine a sister repository of custom extensions that is downloaded programmatically (similar to how sample data is downloaded) to a bokeh.ext directory. Then users would be able to import from there via from bokeh.ext import LaTeX or similar.

In terms of doing the above, what would need to be included in the sister repo? A module containing:

  • the custom extension implementation
  • a README
  • an example file whose output could also be placed in a gallery page somewhere for discoverability?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
takluyvercommented, Sep 8, 2016

The position we’ve wound up taking with both IPython and Jupyter is that reinventing package management is not worth any apparent benefits. It looks like you’re building something simpler at first, but if it actually gets any significant use, pretty soon you’ve wound up reinventing package management badly. Unfortunately I don’t have time to read and process all of the specific arguments in this thread, but from the outside it doesn’t seem like Bokeh is so unusual as to be an exception.

Specific points I saw:

  • pip vs conda: AIUI any pip package can trivially be turned into a conda package. I wrote a wheel2conda converter for packages with no compiled parts, and the conda-forge guys have a more involved but more powerful way to automate creating conda packages.
  • packages from Python vs R (etc.): if you wind up creating a cross-language package manager, that’s a big wheel to reinvent.
0reactions
bryevdvcommented, Mar 27, 2018

As it stands anyone can create a pip (or conda) package to define a bokeh custom extension, including pinning to Bokeh version if appropriate. I had grander visions of a searchable plugin system ala VSCode, Sublime, or Atom, but realistically, that’s probably not going to happen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cross-Reference with custom text - LaTeX Stack Exchange
I'm not looking to define a new format for the references. For example, if the header text is "State and Path functions", I...
Read more >
Blog - Authorea
A preprint is the fastest and most effective way to share early research ... "Can we customize the appearance of articles and profile...
Read more >
Untitled
Chordia food products ltd share price, Brandweer schiphol contact, Beratung in der ... 27.99 adt, Coloration des graphes, Facebook future posts custom, ...
Read more >
Assign Labels to Phone Numbers/Extensions
You can assign a label (referred to as a Custom Tag in Online Account) to a phone number or extension.
Read more >
Untitled
Bailey's custom fishing adventures, Go7900gs, Stink bombs on bus, Metlink nz bus, ... One direction today show nov 17 2014, Aurizon historical share...
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