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.

have `opt.config` allow an URL to load the config object from a file

See original GitHub issue

For now, only the visualisation specification can be optionally loaded from a file using vega.embed, while opt.config is to be provided as an object, not as an URL.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
arvindcommented, Jun 20, 2017

This functionality was supported in v2 of vega-embed, and I think is still supported? Perhaps this is just a case of updating the documentation. @g3o2: Have you tried supplying a string as the opt.config?

In terms of a use case: a common one we originally envisioned was having theme configurations stored as separate files that could be passed along as an opt.config.

0reactions
domoritzcommented, Jun 21, 2017

@g3o2 Congratulations to your first merged pull request then. 🎉

We love to get pull requests for documentation improvements.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load the configuration application.properties
Considering this, you should always load such resources with a class loader. Have a look at this: String propName = "application.properties"; ...
Read more >
ConfigParser – Work with configuration files - PyMOTW
Use the ConfigParser module to manage user-editable configuration files for an application. The configuration files are organized into sections, and each ...
Read more >
configparser — Configuration file parser — Python 3.11.1 ...
This module provides the ConfigParser class which implements a basic configuration language which provides a structure similar to what's found in Microsoft ...
Read more >
Configuration in a file - Ktor
Ktor allows you to configure various server parameters, such as a host address and port, modules to load, and so on. The configuration...
Read more >
Configuration in ASP.NET Core - Microsoft Learn
Learn how to use the Configuration API to configure AppSettings in an ASP. ... {Environment}.json files are supported using JavaScript or C# ...
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