I recently updated the nbdev version of an “old” project of mine (I made a new conda environment), and now automatic tests in github (the “Run tests” part of the build) are failing with a error per notebook, that seems totally unrelated to my code. There are also a few and None of this happens when I run nbdev_test_nbs locally.
Tag: jupyter-notebook
How to cause Jupyter Lab to save notebook (programmatically)
I have a notebook that runs overnight, and prints out a bunch of stuff, including images and such. I want to cause this output to be saved programatically (perhaps at certain intervals). I also want to save the code that was run. In a Jupyter notebook, you could do: (from Save an IPython notebook programmatically from within itself?) Although, I
IllegalMonthError in Python datefinder
I am trying to extract dates from email texts using datefinder python library. Below is a the code snippet of what I am trying to do. datefinder tries to construct all the numbers in the email to dates. I get lot of false positives. I can remove those using some logic. But i get IllegalMonthError in some email and i
ImportError: DLL load failed: The specified module could not be found in VS code Jupyter notebook with anaconda environment
I have anaconda installed and I have changed the interpreter on the top right to my anaconda environment. When imported a library I am getting the following error I have added the following variables in PATH I have added the following variables in Preferences:Settings(JSON) None of the solutions worked. Answer Posting the answer if anyone is stuck on the same
Where does the id field, eg “wound-transition” in a jupyter notebook come from and what does it mean?
If you look at the raw JSON of a jupyter notebook (python in this case), each cell has a field labeled “id”, and they seem to be made up of hyphenated random word pairs, and are often rather funny. A couple random examples: I’ve done some googling but I can’t seem to find any information on these fields! What do
Use huggingface transformers without IPyWidgets
I am trying to use the huggingface transformers library in a hosted Jupyter notebook platform called Deepnote. I want to download a model through the pipeline class but unfortunately deepnote does not support IPyWidgets. Is there a way to disable IPywidgets when using transformers? Specifically the below command. And the error I receive. Note: Installing IPyWidgets is not an option
Differrence between install and import in Jupyterlab Notebooks
What is the difference between the install statement and the import statement in Jupyterlab Notebooks? Why can’t we say !pip install pandas or import xlrd for example? [Screenshot of my notebook : https://i.stack.imgur.com/IxNjA.png ] Answer The install command is used to install a python library. In your case you have already installed xlrd, hence the output Requirement already satisfied. The
How to create the Numpy array X of shape (2638, 1838) for a dataframe has shape (2638, 1840)?
Hi, can someone please help me with this? What should do if I want to use NumPy to get an array X which has a shape (2638, 1838) while the dataframe has a shape of (2638, 1840)? Here is my code: Answer Conversion to Numpy and back to Pandas, as advised in one of comments to your post, is not
Is it necessary to discard outliers before applying LSTM on time series
I am trying to detect anomalies on a time series that controls battery voltage output. I find that my original dataset has some outliers. In this case do I need to remove those points using InterQuartile Range (IQR) or Zscore? of course before using the LSTM keras model Answer Removing or not removing outliers all depends on what you are
Is there a way to do fraction in sympy
I am trying to do fraction using sympy, I know sympy is supports symbolic but can it be done with old fraction, please know that I want it to be display it as unevaluatedexpr here is my code. Answer