RedBean
RedBean
DDeno
Created by RedBean on 9/30/2024 in #help
Is deno's cache philosophy coherent for local files ?
That is clever, thanks.
12 replies
DDeno
Created by RedBean on 10/1/2024 in #help
Can Jupyter deno create a new cell and/or modify a cell from another cell in the same notebook ?
I'm wondering if this is a limitation of Jupyter running in VS Code. I don't think I know enough about the topic to create a good issue.
5 replies
DDeno
Created by RedBean on 9/30/2024 in #help
Is deno's cache philosophy coherent for local files ?
I am unsure of my understanding but there is certainly a cache directory https://denolib.gitbook.io/guide/advanced/deno_dir-code-fetch-and-cache If I recall I was seeing files in the gen directory that were associated with imports of TS local files but I am less sure if the issue was there with a restart. I was trying to allow for updating a file without a restart - as we can imagine being many cells into a Jupyter notebook and then wanting to modify a local import that would require re-running the entire notebook again!
12 replies
DDeno
Created by RedBean on 10/1/2024 in #help
Can Jupyter deno create a new cell and/or modify a cell from another cell in the same notebook ?
It seems possible, this is from chatGPT
from IPython.display import display, Javascript

# Modify a cell using JavaScript
display(Javascript("""
var cell = Jupyter.notebook.get_selected_cell();
cell.set_text('print("This cell has been modified!")');
"""))
from IPython.display import display, Javascript

# Modify a cell using JavaScript
display(Javascript("""
var cell = Jupyter.notebook.get_selected_cell();
cell.set_text('print("This cell has been modified!")');
"""))
5 replies
DDeno
Created by RedBean on 9/30/2024 in #help
Is deno's cache philosophy coherent for local files ?
I am new to deno but it seems the cache can persist across restarts. It makes sense that it should for files that are not under development.
12 replies
DDeno
Created by RedBean on 9/30/2024 in #help
Is deno's cache philosophy coherent for local files ?
I would need to add that during dev and then remove it for prod. Would it make more sense to have a way of telling deno not to cache files with a URL and globing ? I mention it because it is a nasty surprise when first trying to pick up deno.
12 replies