I'm trying to run a .py script for trainning a Neural Network from a jupyter notebook in Colab. I'm doing that because the python script needs some input arguments. Both, python script and jupyter notebook are Colab files and they are in synchronized Google Drive.
I attach an example:
(execution file in jupyter notebook)
enter image description here
I execute the python script as follows from the jupyter notebook:
!python3 /content/gdrive/My\ Drive/Tesis/prueba1.py --lr-find 1
Where --lr-find 1 is the input argument that my Neural Network needs.
Anyway, this doesn't work for me. The neural network don't show sign of starting training.
Have you tried something similar?
Thank you very much in advance.
Related
I have a jupyter notebook that creates a report which is then saved to a shared network folder. The report is saved over every time the notebook is run. Colleagues would like to get up-to-date reports but do not have jupyter notebook installed on their machines. Is there a way to execute a jupyter notebook on another pc on the network? There are desktops which are always on and connected to the network. I was thinking something along the lines of creating a .ps1 file that the user would run in powershell from their machine:
magic to execute notebook
Start-Sleep -s 2 #pause to make sure notebook runs and finishes
Invoke-Item "\path_to_shared_folder\report.pdf" #open the up-to-date report that was just created
I try to run this code in my own computer: https://github.com/ThaiPham27/Depression_Detection_DNN
I've downloaded the zip file but I have no idea how can I run this code in Jupyter notebook and get the output. I couldn't find any complete guide for that.\
I have Python 3.9 on Windows 10.
you can only run notebook file on Jupyter Notebook, and the extension of notebook files is ".ipynb"
And you need to have jupyter notebook on your system, or you can download Anaconda package for that.
P.S: I also briefly looked into the notebook, seems like it was setup for Google Colab as it is using some CSV from google drive.
This might be a dumb question but I'm using Google Colab to host notebooks for my students. I create the notebooks in a local Anaconda Python 3 environment, and when I upload them to Google Colab this warning pops up:
I know that it won't cause problems, and the notebook will run just fine. But is there a way to change the the notebook runtime to Python 3 so my students don't see this message and panic?
You can open the notebook with a text editor. It's just a json file.
You can edit it, change conda-env-py3-py to python3
I love the way vs code works with jupyter notebooks and WSL 2. However, the only thing stopping me from switching completely is the lack of image rendering from a distributed notebook. When I download a notebook from class, there are sometimes important images displaying flowcharts, diagrams, etc and these do not load on vs code but they do on Anaconda using jupyter notebook there. Any ideas?
Vs Code Jupyter Notebook
anaconda jupyter notebook loaded
This is my first stack overflow question, so I hope it is comprehensible.
I have a neural net from a couple of years ago on a flash drive. I made it on a windows computer and am now trying to run it on a mac. When I try to run the program it asked for my token, I canceled and clicked run jupyter notebook in the pop up (as was directed at https://www.jetbrains.com/help/pycharm/running-ipython-notebook-cells.html). But when I clicked run jupyter notebook it gave me this error:
Error running 'Building Neural Networks': Cannot run program
"C:/Users/myusername/AppData/Local/Programs/Python/Python36-
32/python.exe" (in directory "/Volumes/myflashdrive/Building Neural
Networks"): error=2, No such file or directory
it seems like there is some error because it was made on a windows, but I can't find where I can fix it. I am able to use jupyter notebook on projects not from the flash drive. Thanks.