All Questions
Tagged with altair jupyter-lab
16
questions
2
votes
1
answer
500
views
Problems plotting time-series interactively with Altair
Description of the problem
My goal is quite basic: to plot time series in an interactive plot. After some research I decided to give a try to Altair.
There are already QGIS plugins for time-series ...
1
vote
1
answer
1k
views
Altair chart not displaying when evaluated within a function
The following code, taken from the Altair docs, correctly displays in my Jupyter Lab notebook.
import altair as alt
from vega_datasets import data
source = data.seattle_temps.url
alt.Chart(
...
0
votes
1
answer
1k
views
Altair combine two charts
I am trying to plot/combine two charts on Altair, but only one of the chart is actually showing with the expected data. The second chart doesn't show.
The second chart is blank
Code below:
import ...
2
votes
2
answers
246
views
Registering custom vega formatters in jupyterlab with altair
I'm trying to implement a custom formatter formatType that I can use with altair in jupyterlab. I cannot figure out how to register the vega expression function in jupyterlab. It works when using the ...
0
votes
0
answers
72
views
"'charmap' codec can't encode character '\u015f' in position 510335: character maps to <undefined>" when loading a csv in Altair
I am running this code in Jupyter Lab and I get the following error. I can't figure out what the problem is. I am using Altair/Pandas on Jupyter Lab to visualise the Pleiades dataset.
import altair as ...
3
votes
2
answers
909
views
Can't save Altair chart as SVG from VS Code
When trying to export an Altair chart in SVG format from a Jupyter Notebook running inside Visual Studio Code, I am prompted "You'll need a new app to open this data link", but no apps are ...
1
vote
1
answer
475
views
Center Altair output in Jupyterlab (including when it is exported to HTML)
How would I center align an Altair chart in Jupyterlab so that it remains centered in the exported HTML?
The following code centers the plot in the notebook; however, when I export the notebook to ...
1
vote
1
answer
195
views
What causes an Altair Chart to be displayed when it is the last statement in a JupyterLab cell?
I have a class that I want to use in JupyterLab. When the last statement in a JupyterLab notebook evaluates to an instance of my class, I want to display an Altair Chart representing the object of my ...
5
votes
1
answer
5k
views
How to display two different legends in hconcat chart using altair
I need to display two separate charts side by side including their legends in Jupyterlab and the only way I managed to do that was using hconcat.
I've gotten this far:
However even with ....
1
vote
1
answer
299
views
Where is @jupyterlab/vega6-extension?
I'm trying to use an alternative renderer for Altair. The instructions says to install @jupyterlab/vega6-extension for offline rendering. However, when I type in
jupyter labextension install @...
0
votes
1
answer
182
views
How do I render objects with Altair in Jupyter Lab?
Lenovo Thinkpad, Windows 10.
I recently updated Conda which I haven't used in a while. I'm trying to use Altair and after updating via conda update conda and then looking at conda list, among some of ...
3
votes
1
answer
2k
views
Altair plot not showing when using Panel
I am following this tutorial [github] on using Panel and Altair.
The function which returns my plot is the following:
@pn.depends(ticker.param.value, date_range_slider.param.value)
def get_plot(...
0
votes
1
answer
947
views
Altair linked map with scatter plot
I am trying to create a linked plot similar to examples here and here. I want a scatter plot on one side and a geomap on the other. The dots in the scatter plot will show up as dots on their ...
0
votes
1
answer
924
views
How to create a TopoJSON geomap using Altair library for Python?
I am trying to create a geomap of a state using Altair package for Python. I will then plot let's say dots representing some event at a location specified by its latitude & longitude. I follow the ...
0
votes
1
answer
873
views
How to avoid Javascript Error in altair viewing?
In python3 I have a dataframe on pandas:
import pandas as pd
import altair as alt
nomes_dep.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 120 entries, 0 to 119
Data columns (total 3 ...