Comments (6)
I am also having the same error. Did you find any workaround for this? It's common for students to forget to delete the .ipynb_checkpoints before submitting.
from ngshare.
Yes, here's the workaround I'm using. First, find where your ngshare.db is. Also, you have to install sqlite3.
-
To view the submissions which contain .ipynb_checkpoints files:
sqlite3 ngshare.db 'select * from submission_files_assoc_table join files on files._id=submission_files_assoc_table.right_id where files.filename like "%.ipynb_checkpoints%";' '.exit'
-
I suggest backing up your ngshare.db file, just in case.
-
Then to delete the associations:
sqlite3 ngshare.db 'delete from submission_files_assoc_table where ROWID IN (select submission_files_assoc_table.ROWID from submission_files_assoc_table join files on files._id=submission_files_assoc_table.right_id where files.filename like "%.ipynb_checkpoints%");' '.exit'
-
Run the first command again to see that the files are now unassociated.
To make this easier for me, I'm just running the delete command every night via a CronJob deployment in k8s.
from ngshare.
- How to find the ngshare.db? is it same as the gradebook.db of nbgrader?
- To install sqlite3; you mean to install it inside the pod (container) or on k8s?
- Your code in Step 1 and Step 3 commands are exactly same, how the latter is deleting the associations?
from ngshare.
Oops, I fixed step 3.
No, ngshare.db will be in the ngshare server pod. Yeah, you can install sqlite3 there (I haven't tried this) or you can on whichever system that can also access that same persistent volume that's being used by ngshare.
from ngshare.
@JBRhoads
Thank you very much for such a quick response. It's working as per your suggestion. :)
from ngshare.
Yes, here's the workaround I'm using. First, find where your ngshare.db is. Also, you have to install sqlite3.
1. To view the submissions which contain .ipynb_checkpoints files: `sqlite3 ngshare.db 'select * from submission_files_assoc_table join files on files._id=submission_files_assoc_table.right_id where files.filename like "%.ipynb_checkpoints%";' '.exit'` 2. I suggest backing up your ngshare.db file, just in case. 3. Then to delete the associations: `sqlite3 ngshare.db 'delete from submission_files_assoc_table where ROWID IN (select submission_files_assoc_table.ROWID from submission_files_assoc_table join files on files._id=submission_files_assoc_table.right_id where files.filename like "%.ipynb_checkpoints%");' '.exit'` 4. Run the first command again to see that the files are now unassociated.
To make this easier for me, I'm just running the delete command every night via a CronJob deployment in k8s.
Thank you sharing, this worked. Can you please also share the manifest for the cron job?
from ngshare.
Related Issues (20)
- Isolate helm chart from ngshare app
- Documentation on Multiple Graders using ngshare? HOT 4
- Question:ngshare in Docker? HOT 2
- Cannot launch pod in GKE: ReadWriteMany not supported HOT 2
- ngshare blocks and restarts when accessed HOT 2
- Travis CI seems scuffed
- Readiness probe failed on deploying in same namespace HOT 3
- Checkpoint File Caused ngshare Error and No nbgrader Warnings
- Is this still be developed or supported? HOT 1
- Help: endpoint is deprecated HOT 6
- Compatibility with nbgrader 0.7.1 HOT 2
- Help:Adding Multiple Students to the Couse Api not accepting the body. HOT 3
- Proposed JupyterHub 3.0 Singleuser Dockerfile HOT 1
- 503 service unavailable. Your server appears to be down. Try restarting it from the hub HOT 1
- JupyterLab 4 / nbgrader 0.9 support
- Running ngshare behind reverse proxy
- Some tests fail with sqlalchemy >= 2.0
- use ngshare with Apache reverse proxy
- Release button dose not work normally (Jupyterhub with dockerspawner )
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 ngshare.