Make execute_notebook: cache
the default and deprecate auto
?
#321
Replies: 14 comments 3 replies
-
hey @chrisjsewell I have found having multiple options confusing. |
Beta Was this translation helpful? Give feedback.
-
from my knowledge, stability was the primary reason. I think we can remove |
Beta Was this translation helpful? Give feedback.
-
The main reason is that IMO less complexity is (almost) always better than more complexity, and stable tools are (almost) always better than newer tools. But that decision was made about 5 months ago, so it's possible things have changed since then as @mmcky mentions. I will leave it to you all to decide whether or not to deprecate auto, because I think you have more experience building books than I do, but I'll give you my personal decision criteria: Which option is simpler for somebody that has never coded before except they've attended one bootcamp where they learned Jupyter notebooks? Which pattern is less likely to make this person confused or uncertain about what is going on? Which pattern is easier to explain to that person so they understand what is happening? |
Beta Was this translation helpful? Give feedback.
-
To all of these I'd answer Personally I just don't think I think it could actually just be in the config |
Beta Was this translation helpful? Give feedback.
-
I guess the main thing I worry about is users seeing error messages that include references to SQLite and things like that. But again it's just been a while since I've used jupyter-cache directly so maybe all of this has been improved in the last few months. If it has then I am 👍 on just using |
Beta Was this translation helpful? Give feedback.
-
In all my documentation builds of myst-nb and jupyter-book in the last month, I haven't once seen an error like this, or had any failings of jupyter-cache. But I'm sure issues will be raised if people do start encountering them for whatever reason. In the next release of myst-nb then, I will look to add a deprecation warning for While I'm at it, I will probably also deprecate |
Beta Was this translation helpful? Give feedback.
-
sounds good we may want to have a minor-version deprecation cycle or something like this, so that we can raise a warning for people to change their configs |
Beta Was this translation helpful? Give feedback.
-
Did you not read my last message lol, i.e. adding a deprecation warning |
Beta Was this translation helpful? Give feedback.
-
sorry, I was just referring to your last sentence about changing the config pattern
I didn't make the connection that the DW would apply to both. Go easy on me man I'm working on like 1-3 hours of sleep a night here |
Beta Was this translation helpful? Give feedback.
-
No excuse 😜😂 |
Beta Was this translation helpful? Give feedback.
-
@choldgraf I am amazed you can make any comments at all -- I am just in recovery 2 years latter |
Beta Was this translation helpful? Give feedback.
-
@chrisjsewell I like your plan. I think having An alternative is to setup an
with could override a |
Beta Was this translation helpful? Give feedback.
-
Making |
Beta Was this translation helpful? Give feedback.
-
Did we reach a resolution on this one? I am fine making |
Beta Was this translation helpful? Give feedback.
-
I never use
auto
and I don't see the point in it.Initially, I can see how jupyter-cache was more complex and more of unknown.
But now it is pretty well solidified, I have never found an issue with it, and we actually use it for building both the myst-nb and jupyter-book documentation.
Deprecating
auto
would allow us to better streamline our execution flow, and would minimise the choice and possible confusion for users.@choldgraf @AakashGfude @mmcky etc, tell me why
auto
is so great 😜(or what needs to be improved about
cache
to make it the one to rule them all)Beta Was this translation helpful? Give feedback.
All reactions