Comments (4)
There a few ways this could work. For example, suppose there are data_src_dir and data-dst_dir in nbpages.cfg.
Option 1. If data_dst_dir is specified and different from data_src_dir, then make new copy, overwriting after permission. The user could maintain a second data-private directory if there is data that shouldn't be copied.
Option 2. Add a data-ignore file. Adds complexity, and another file to edit.
from nbpages.
Have now figured out that figures and data should be subdirectories of notebooks folder to enable relative reference of figures and data from notebooks. This has a number of good effects ...
- No need to change links to figures when moving from local development to remote hosting of html pages. Figures will display correctly.
- When publishing, can omit any figure and data files that are not referenced in the html files.
So --publish now needs to publish html, figures, and data files.
from nbpages.
I like putting /data and /figures in the /notebook directory. This means a user could use /notebook-sandbox (also containing /figures and /data) to develop notebooks (without them being published).
from nbpages.
This is now implemented. data and figures are now subdirectories of notebooks. Upon publish, only figures which actually appear in the notebooks after stripping tags, etc., are copied to the destination directory. This will be implemented for data, too. So closing this issue.
from nbpages.
Related Issues (20)
- Chapter numbers missing, error in nbpages.cfg, TOC links broken HOT 9
- Special formatting for cells with special tags HOT 3
- Automatically run nbpages from GitHub
- Critical: error with loading data files in Colab HOT 16
- Duplicate entries in data index HOT 2
- Embedded figures (likely) missing in Colab HOT 1
- IPython3 lexer unavailable warning HOT 1
- Error setting up dual repo HOT 1
- Missing Level one header leads to error message
- Check and add data, code, and figures directory to dest if needed
- Fix naming of appendices
- Add instructions for setting up private/public respository pair
- Python 3.8 error HOT 2
- Add support for .md files HOT 1
- Add command line option to disable automatic insertion of code HOT 1
- Add support for .xlxs files in /data HOT 2
- Error with missing modules, template directory
- Extra ")" in tag index page HOT 2
- Publish command does not support subdirectories in /data folder HOT 1
- "nbpages --publish" returns "nbpages.exe: error: unrecognized arguments: --publish"
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 nbpages.