![]() Setup ssh using gcloud and then into SSH in you your notebook machine by running the code below. Below I explain how to install the package from local source. Once your package is setup, you can put your code inside the package. These instuctions explain how to setup a python package if you want to do it manually, however, I suggest using a generator like this one. Instructions Create a Python Package for Python Modules The instructions below explain how to re-create this setup. Even methods of class instances which were initialized before a change are updated automatically. ![]() Eventually, I came up with a solution that allows me to write python code locally in P圜harm (or any other IDE) and have my notebooks automatically pick up the changes. ![]() This approach was painful because the JupyterLab’s python editor is not the best IDE and I had to manually reload my module every time I made a change. When I first started using AI-Notebooks, I had one Jupyter panel open to a notebook and another to a python file that had my classes and methods. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |