pinae / altair-examples Goto Github PK
View Code? Open in Web Editor NEWFirst steps with the data visualization framework Altair - with example data
License: GNU General Public License v3.0
First steps with the data visualization framework Altair - with example data
License: GNU General Public License v3.0
Wenn man im Jupyter Notebook keine Grafiken angezeigt bekommt
und in der Browser Konsole folgende Meldung steht:
The resource from “http://localhost:8888/nbextensions/jupyter-vega/index.js?v=XXX” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
404 GET /nbextensions/jupyter-vega/index.js?v=XXX (127.0.0.1) 1.79ms referer=http://localhost:8888/notebooks/Bankdaten.ipynb
dann liegt das nicht am Mimetype (wonach ich stundenlang gesucht habe),
sondern an der fehlenden jupyter-vega Aktivierung in den Notebook Extensions.
Prüfen:
jupyter nbextension list
-> jupyter-vega ist nicht gelistet
Lösung:
jupyter nbextension install --sys-prefix --py vega
jupyter nbextension enable vega --py --sys-prefix
Bin newby in Sachen Python und Anaconda - bitte also um Nachsicht:
Wenn ich - wie im c't Artikel beschrieben - die Zeile
conda install vega altair
ausführe, erhalte ich eine Fehlermeldung:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- vega
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
Eine Suche nach "vega" und "altair" auf der Anaconda-Seite ergab package "conda-forge vega" bzw. "conda -forge altair"
Wenn man eines dieser beiden installieren will - gemäss Insturktionen mit:
conda install -c conda-forge vega
erhält man:
Collecting package metadata (current_repodata.json): done
Solving environment: /
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- defaults/win-64::anaconda==2019.07=py37_0
- defaults/win-64::numba==0.44.1=py37hf9181ef_0
done
...
plus diverse Warnungen, dass dies div. packages downgraden würde, wenn man weitermache.
Habe hier dann abgebrochen...
Was läuft hier falsch, bzw. wie/woher soll man das Package "vega" und "altair" installieren?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.