Git Product home page Git Product logo

Comments (4)

pjbull avatar pjbull commented on June 19, 2024

@adfi A few options that are workarounds:
(1) You could use absolute paths (local only, so maybe not that useful)
(2) You could edit jupyter_notebook_config.py to customize the save function like we do to also copy the files you reference in markdown separately to the markdown folder.

A couple options for us to better support this scenario:
(3) Would it work for you if the markdown and the original notebook just lived in the same folder? That the relative links to resources would be the same. We could provide an organize_by option that does not place the output in a subfolder.
(4) Would it work for you to specify a folder in .nbautoexport of assets to be copied to the subfolder? That's another possible implementation on our end.

from nbautoexport.

adfi avatar adfi commented on June 19, 2024

Thanks for your reply.

(1) As you say this one isn't what we're looking for
(2) I don't really know how to customize the save function, if you have an example that would be helpful.

(3) That would be helpful in general
(4) This would be a good backup in case (3) doesn't work

from nbautoexport.

pjbull avatar pjbull commented on June 19, 2024

Awesome, we'd definitely take a PR for 3, which should be easy. Here's the relevant code block:

if config.organize_by == "notebook":
subfolder = notebook_path.stem
elif config.organize_by == "extension":
subfolder = export_format.value

To implement it, we'd need a few things:

  • add new if block with organize_by == 'none' and set subfolder = None (which
  • add a test
  • add documentation

from nbautoexport.

adfi avatar adfi commented on June 19, 2024

Thanks for the guidance, I'll try to work on it this week.

from nbautoexport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.