yifanwu / b2 Goto Github PK
View Code? Open in Web Editor NEWBridging Code and Interactive Visualization in Computational Notebooks
License: Apache License 2.0
Bridging Code and Interactive Visualization in Computational Notebooks
License: Apache License 2.0
Please keep in mind I'm a complete beginner so this problem might be caused by something on my end.
I tried running B2 on Linux (Ubuntu 20.04 LTS), Python 3.8.
I was told to open and test out the notebooks, so I launched b2-ext on jupyter and opened the B2 folder. Then when I tried to open and run "Untitled.ipynb" I kept getting errors when importing B2 and midas. It kept saying "Import Error: cannot import name "Midas" from "midas"."Import Error: cannot import name "B2" from b2. I also tried typing in "Import b2" and running it. For this is got "ModuleNotFoundError: No module named "Data Science"."
Also, can you please give me something like a short beginner's guide on a proper way to actually run b2? I read all the instructions on github but I can't understand most of it since I'm so new. I would really appreciate it.
Sorry for the inconvenience.
Currently B2 uses https://github.com/data-8/datascience, which was chosen for its simple API, convenient for code generation. However it's very slow. It should be easy to swap out the execution with something like pandas
, modin
, and/or ibis
.
After I ran...
pip3 install b2-ext
Somehow the nb extension config still produced a file with the name "midas" in it.
$ cat /Library/Frameworks/Python.framework/Versions/3.10/etc/jupyter/nbconfig/notebook.d/b2.json
{
"load_extensions": {
"midas/index": true
}
}
B2 wouldn't load. But when I manually changed "midas" to "b2" in the file above, it worked.
I'd make a PR to fix this, but, despite searching for "midas" in the B2 source, I don't know where it went wrong!
If a column name starts with a number, e.g., 10age_group
, then the current code generates a python variable starting with 10
, which is bad.
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.