Comments (5)
It looks to me like read_nb
is the key thing here in terms of enabling remote files to be used — this makes a call to:
# Read-only in UTF-8, note NO_CONVERT.
with io.open(nb, 'r', encoding='utf8') as f:
nb = nbformat.read(f, nbformat.NO_CONVERT)
If that can work with remote files then this is a trivial fix. If it can’t then we’d probably just want to download and save a copy to a local temp directory.
The other thing I can see is that the ‘src’ attribute needs some thought as I’m not sure that we had envisioned a remote URL then calling other notebooks to be included. This should be solvable if the general problem is solvable (you just need to remember to check if src
is local or remote and then parse the includes accordingly) but as with all things that seem easy a lot will depend on whether I came up with an elegant solution to this back in the day.
from geopyter.
I think we can handle this as we can test for the scheme in the opener and dispatch accordingly.
On a related note, urllib has undergone major refactoring between python2 and python3. We started with python2 for this project but I think we might want to revisit that decision as a lot content is now python3 only. We probably don't want to have two versions of gp, or one version that can support 2 and 3 (having scars that are still not healed from the pysal 2 to 3 transition).
from geopyter.
from geopyter.
Cool. I'll work on refactoring to 3 only and handling the remote v. local reads.
from geopyter.
Resolved. Though I think it still outputs a message the remote reads aren't supported.
from geopyter.
Related Issues (14)
- Reading, sub-setting, writing notebooks HOT 1
- Specification of @include HOT 4
- Metadata Tracking HOT 4
- Recursion in Imports
- Management of Data Sets HOT 4
- Management of Questions & Answers / Quizzes & Exams HOT 5
- Selecting and Including Content HOT 1
- Setup testing infrastructure HOT 3
- Support Python 3 HOT 1
- Excludes only work on first match
- Change resource to nb HOT 2
- Conversion of markdown files to notebooks HOT 7
- Develop specification for structure of atom notebooks HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geopyter.