Project

General

Profile

Actions

Bug #18045

closed

Download Jupyter Files (.ipynb): should offer 'save as', but shows inline

Added by Carsten Rose 5 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Carsten Rose
Target version:
Start date:
02.03.2024
Due date:
% Done:

100%

Estimated time:
Discuss:
Prio Planung:
No
Vote:

Description

  • Fehler von #18038
  • Wird ein Jupyter Notebook File zum Download angeboten - erscheint das File 'inline' (weil 'application/json' erkannt wird und der Browser dann das als Text erkennt und inline darstellt).
  • Das ist ganz schlecht wenn Studenten die ipynb Files als Uebungsfiles herunterladen sollen.
  • Hier ist ein Artikel von 09/2023 wie man ipynb Files von Github herunter laedt - man muss 'raw' zum anzeigen waehlen und dann im Browser 'save as' machen ... das ist doch Pain!
Actions #1

Updated by Carsten Rose 5 months ago

  • Status changed from New to In Progress

Versuch 1:

  • Neuen 'M:' mode definiert 'fileSave'
  • Scheint zu funktionieren
  • Nachteil:
    • Es muessen alle Stellen in der Applikation (MY) angepasst werden.
    • Ein impliziter Download im Filepond Upload Dialog hat erstmal nicht mitgespielt - Anzeige: inline.

Versuch 2

  • QFQ erkennt ob der Downloadmode 'file' ist mimetype 'application/json'.
  • In dem Fall wird (wie bei 1) auf Mimetype 'application/octet-stream' gewechselt.
  • Vorteil:
    • Das funktioniert implizit, keine Aenderung in den Applikationen.
    • Funktioniert auch im filpond download.

Weitere Aspekte:

  • + Die Loesung funktioniert fuer alle mimetype 'application/json'.
  • + Werden ipynb Files direkt verlinkt, bietet Apache ebenfalls ein 'Save As' Dialog an.
  • - Wir haben keine Moeglichlichkeit mehr json inline darzustellen ... das sollte aber keine signifikante Einschraenkung sein.

*

Actions #3

Updated by Carsten Rose 5 months ago

  • Description updated (diff)
Actions #4

Updated by Carsten Rose 5 months ago

  • Tracker changed from Support to Bug
Actions #5

Updated by Carsten Rose 4 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Carsten Rose about 2 months ago

  • Target version changed from 24.8.0 to 24.5.0
Actions

Also available in: Atom PDF