I have a new installation of VS Code 1.62.3
When I open .ipynb files that were created in Jupyter Notebook and run the first piece of code, it keeps creating a second copy of the file with a hexidecimal name as a postfix.
Here is a screenshot of what it looks like:
This doesn't happen when I create the file in VS Code, only those created in Jupyter Lab.
Does anyone know why this is happening or how I can stop this?
Thank you
Related
Since a reinstallation of Conda (miniconda) I have done on my Mac (Ventura), I am encountered a new strange behavior with notebook in VScode. When I (re)launch a notebook in VScode, an almost empty (one empty cell) file with the same name as my .ipynb + jvsc/numbers is created and put in the bin but not deleted.
I have tried to reinstall my Conda and VScode but this change nothing. This issue only appear with VScode, no problem when I run a notebook with the "jupyter notebook" command.
Is there someone that have encountered this issue and is there a solution ?
Best,
Tristan
So I have started using Jupyter Notebooks in VS Code but have run into the following problem: when I create a file via the terminal it doesn't save it in the directory from which the command was run and instead it creates it in the directory in which a file was last opened (in VS Code).
Example: the terminal is currently open in C:...\programs and so I use code test.ipynb. However, instead of creating a file there, it creates it in C:...\programs\files since the last file I opened manually in VS Code was from there.
(As a note, when doing this with .py files everything works perfectly.)
I have a .ipynb and Im trying to open it in VS code but I see it like this
Also I try to import the file from VS code an I got this error
Everything is in one line and I cannot see it as a Jupiter Notebook. How can I fix this problem?
I have an issue that I cannot solve. Im trying to open a big file in VS Code this one ,but when Im trying to open with the option: Jupyter:Open Jupyter Notebook nothing happens.
With others files works fine and opens in jupyter notebook automatically but not this one. I think maybe I touch something so now it doesn't work.
Could somebody help me please?
I want to create a new jupyter file in any location of choice of my computer other than in the default folder. I am using windows 10. Just like any other applications, word, R etc, you have the choice to create and save it in anywhere but I could not figure out how to do that in jupyter.
When you are starting jupyter-notebook, first go to the desired directory where you want to create or save file and then start the notebook. Now, jupyter will run in that directory. You will be able to save your work (ex., ipynb files) in that directory.
I follow this whenever I work with jupyter notebook. I prefer this approach because in this way, you can start the jupyter-notebook in any desired directory.
You can see the official instruction to change the startup folder for jupyter-notebook in windows.
You can also do the following: using the jupyter notebook config file.
Open cmd and type jupyter notebook --generate-config
This writes a file to C:\Users\username.jupyter\jupyter_notebook_config
Change line 179. c.NotebookApp.notebook_dir = '' to c.NotebookApp.notebook_dir = 'your path'. [Make sure you use forward slashes in your path]
But you need to do this every time you want to start jupyter-notebook in a different directory. Thats why I don't prefer this approach (personal opinion).
You can this stackoverflow post too, in case if you get any help from it.