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.

Pluggable custom formatters

See original GitHub issue

For now the different formatters run in process by importing the Python modules directly. For example:

https://github.com/ryantam626/jupyterlab_code_formatter/blob/ca74872e842ac20e4c9086eb8d008243942e824c/jupyterlab_code_formatter/formatters.py#L75-L78

It would be interesting if we could have them also be pluggable using the notebook server config:

c.JupyterLabCodeFormatter.extra_formatters = {
     "custom": CustomFormatter(),
}

That could be also useful for #24, so users could provide their own formatters if they are not available by default.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ryantam626commented, Apr 7, 2021

@marctorsoc for now, you woul need to hard code them in the jupyter config file (and restart the jupyter server for this to take effect).

0reactions
marctorsoccommented, Apr 7, 2021

Hi @ryantam626, how can I pass options to my custom formatter?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Custom Formatters
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Custom Formatters
The Custom Formatters module allows users to easily create custom Field Formatters without the need ... Pluggable editor/renderer engines:.
Read more >
Support custom / pluggable "formatters" (beside Date/Time ...
While having the build in formatters (numbers, dates, lists, relative dates) is awesome sometimes there is the need to define some custom format...
Read more >
Using the Pluggable Formatters - GoldenGate
The pluggable formatters are used to convert operations from the Oracle GoldenGate trail file into formatted messages that you can send to Big...
Read more >
Working with Custom Formatters - ESLint - GitHub Pages
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. ... Writing an ESlint custom formatter is simple.
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